Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Unified Diff: tests/language/src/TypeVariableBounds2Test.dart

Issue 9664065: Base test case of a multi-test now insists no static type warnings (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reverted SyntaxTest Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/language/src/TypeVariableBounds2Test.dart
diff --git a/tests/language/src/TypeVariableBounds2Test.dart b/tests/language/src/TypeVariableBounds2Test.dart
index 1d901608cb609581574d23a327bfc91c8c949390..9c6525bfb168ae73f6c4f0566f3d336779101b9c 100644
--- a/tests/language/src/TypeVariableBounds2Test.dart
+++ b/tests/language/src/TypeVariableBounds2Test.dart
@@ -4,12 +4,20 @@
// Test of parameterized types with invalid bounds.
-interface I<T extends num> { }
-
interface J<T> { }
interface K<T> { }
+interface I<T
+ extends num /// 00: continued
zundel 2012/03/12 14:54:39 This test required a bit of hacking. The multiple
+ extends num /// 01: continued
+ extends num /// 02: continued
+ extends num /// 03: continued
+ extends num /// 04: continued
+ extends num /// 05: continued
+ extends num /// 06: continued
+> { }
+
class A<T> implements I<T>, J<T> {
}
@@ -21,7 +29,7 @@ main() {
J j = a; /// 01: static type warning
K k = a; /// 02: dynamic type error, static type warning
- // In production mode, A<String> is subtype of I, but error in checked mode.
+ // In production mode, A<String> is subtype of I, error in checked mode.
var x = a is I; /// 03: dynamic type error, static type warning
// In both production and checked modes, A<String> is a subtype of I.
Bill Hesse 2012/03/12 16:02:49 subtype of J, not I.
@@ -51,3 +59,4 @@ main() {
Expect.isTrue(a is !K);
}
}
+
Bill Hesse 2012/03/12 16:02:49 Extra line.

Powered by Google App Engine
This is Rietveld 408576698