Index: tests/language/generic_instanceof.dart |
diff --git a/tests/language/generic_instanceof.dart b/tests/language/generic_instanceof.dart |
index 5c65ec12fdded4db8c9f081f9e9f97a03e68b7c8..3f64976d6b547f3022e32d9d1f93f028455ca41d 100644 |
--- a/tests/language/generic_instanceof.dart |
+++ b/tests/language/generic_instanceof.dart |
@@ -37,91 +37,91 @@ class GenericInstanceof { |
} |
{ |
Foo foo = new Foo(); |
- Expect.equals(true, foo.isT(new List.fixedLength(5))); |
- Expect.equals(true, foo.isT(new List<Object>.fixedLength(5))); |
- Expect.equals(true, foo.isT(new List<int>.fixedLength(5))); |
- Expect.equals(true, foo.isT(new List<num>.fixedLength(5))); |
- Expect.equals(true, foo.isT(new List<String>.fixedLength(5))); |
+ Expect.equals(true, foo.isT(new List(5))); |
+ Expect.equals(true, foo.isT(new List<Object>(5))); |
+ Expect.equals(true, foo.isT(new List<int>(5))); |
+ Expect.equals(true, foo.isT(new List<num>(5))); |
+ Expect.equals(true, foo.isT(new List<String>(5))); |
} |
{ |
Foo foo = new Foo<List>(); |
- Expect.equals(true, foo.isT(new List.fixedLength(5))); |
- Expect.equals(true, foo.isT(new List<Object>.fixedLength(5))); |
- Expect.equals(true, foo.isT(new List<int>.fixedLength(5))); |
- Expect.equals(true, foo.isT(new List<num>.fixedLength(5))); |
- Expect.equals(true, foo.isT(new List<String>.fixedLength(5))); |
+ Expect.equals(true, foo.isT(new List(5))); |
+ Expect.equals(true, foo.isT(new List<Object>(5))); |
+ Expect.equals(true, foo.isT(new List<int>(5))); |
+ Expect.equals(true, foo.isT(new List<num>(5))); |
+ Expect.equals(true, foo.isT(new List<String>(5))); |
} |
{ |
Foo foo = new Foo<List<Object>>(); |
- Expect.equals(true, foo.isT(new List.fixedLength(5))); |
- Expect.equals(true, foo.isT(new List<Object>.fixedLength(5))); |
- Expect.equals(true, foo.isT(new List<int>.fixedLength(5))); |
- Expect.equals(true, foo.isT(new List<num>.fixedLength(5))); |
- Expect.equals(true, foo.isT(new List<String>.fixedLength(5))); |
+ Expect.equals(true, foo.isT(new List(5))); |
+ Expect.equals(true, foo.isT(new List<Object>(5))); |
+ Expect.equals(true, foo.isT(new List<int>(5))); |
+ Expect.equals(true, foo.isT(new List<num>(5))); |
+ Expect.equals(true, foo.isT(new List<String>(5))); |
} |
{ |
Foo foo = new Foo<List<int>>(); |
- Expect.equals(true, foo.isT(new List.fixedLength(5))); |
- Expect.equals(false, foo.isT(new List<Object>.fixedLength(5))); |
- Expect.equals(true, foo.isT(new List<int>.fixedLength(5))); |
- Expect.equals(false, foo.isT(new List<num>.fixedLength(5))); |
- Expect.equals(false, foo.isT(new List<String>.fixedLength(5))); |
+ Expect.equals(true, foo.isT(new List(5))); |
+ Expect.equals(false, foo.isT(new List<Object>(5))); |
+ Expect.equals(true, foo.isT(new List<int>(5))); |
+ Expect.equals(false, foo.isT(new List<num>(5))); |
+ Expect.equals(false, foo.isT(new List<String>(5))); |
} |
{ |
Foo foo = new Foo<List<num>>(); |
- Expect.equals(true, foo.isT(new List.fixedLength(5))); |
- Expect.equals(false, foo.isT(new List<Object>.fixedLength(5))); |
- Expect.equals(true, foo.isT(new List<int>.fixedLength(5))); |
- Expect.equals(true, foo.isT(new List<num>.fixedLength(5))); |
- Expect.equals(false, foo.isT(new List<String>.fixedLength(5))); |
+ Expect.equals(true, foo.isT(new List(5))); |
+ Expect.equals(false, foo.isT(new List<Object>(5))); |
+ Expect.equals(true, foo.isT(new List<int>(5))); |
+ Expect.equals(true, foo.isT(new List<num>(5))); |
+ Expect.equals(false, foo.isT(new List<String>(5))); |
} |
{ |
Foo foo = new Foo<List<String>>(); |
- Expect.equals(true, foo.isT(new List.fixedLength(5))); |
- Expect.equals(false, foo.isT(new List<Object>.fixedLength(5))); |
- Expect.equals(false, foo.isT(new List<int>.fixedLength(5))); |
- Expect.equals(false, foo.isT(new List<num>.fixedLength(5))); |
- Expect.equals(true, foo.isT(new List<String>.fixedLength(5))); |
+ Expect.equals(true, foo.isT(new List(5))); |
+ Expect.equals(false, foo.isT(new List<Object>(5))); |
+ Expect.equals(false, foo.isT(new List<int>(5))); |
+ Expect.equals(false, foo.isT(new List<num>(5))); |
+ Expect.equals(true, foo.isT(new List<String>(5))); |
} |
{ |
Foo foo = new Foo(); |
- Expect.equals(true, foo.isListT(new List.fixedLength(5))); |
- Expect.equals(true, foo.isListT(new List<Object>.fixedLength(5))); |
- Expect.equals(true, foo.isListT(new List<int>.fixedLength(5))); |
- Expect.equals(true, foo.isListT(new List<num>.fixedLength(5))); |
- Expect.equals(true, foo.isListT(new List<String>.fixedLength(5))); |
+ Expect.equals(true, foo.isListT(new List(5))); |
+ Expect.equals(true, foo.isListT(new List<Object>(5))); |
+ Expect.equals(true, foo.isListT(new List<int>(5))); |
+ Expect.equals(true, foo.isListT(new List<num>(5))); |
+ Expect.equals(true, foo.isListT(new List<String>(5))); |
} |
{ |
Foo foo = new Foo<Object>(); |
- Expect.equals(true, foo.isListT(new List.fixedLength(5))); |
- Expect.equals(true, foo.isListT(new List<Object>.fixedLength(5))); |
- Expect.equals(true, foo.isListT(new List<int>.fixedLength(5))); |
- Expect.equals(true, foo.isListT(new List<num>.fixedLength(5))); |
- Expect.equals(true, foo.isListT(new List<String>.fixedLength(5))); |
+ Expect.equals(true, foo.isListT(new List(5))); |
+ Expect.equals(true, foo.isListT(new List<Object>(5))); |
+ Expect.equals(true, foo.isListT(new List<int>(5))); |
+ Expect.equals(true, foo.isListT(new List<num>(5))); |
+ Expect.equals(true, foo.isListT(new List<String>(5))); |
} |
{ |
Foo foo = new Foo<int>(); |
- Expect.equals(true, foo.isListT(new List.fixedLength(5))); |
- Expect.equals(false, foo.isListT(new List<Object>.fixedLength(5))); |
- Expect.equals(true, foo.isListT(new List<int>.fixedLength(5))); |
- Expect.equals(false, foo.isListT(new List<num>.fixedLength(5))); |
- Expect.equals(false, foo.isListT(new List<String>.fixedLength(5))); |
+ Expect.equals(true, foo.isListT(new List(5))); |
+ Expect.equals(false, foo.isListT(new List<Object>(5))); |
+ Expect.equals(true, foo.isListT(new List<int>(5))); |
+ Expect.equals(false, foo.isListT(new List<num>(5))); |
+ Expect.equals(false, foo.isListT(new List<String>(5))); |
} |
{ |
Foo foo = new Foo<num>(); |
- Expect.equals(true, foo.isListT(new List.fixedLength(5))); |
- Expect.equals(false, foo.isListT(new List<Object>.fixedLength(5))); |
- Expect.equals(true, foo.isListT(new List<int>.fixedLength(5))); |
- Expect.equals(true, foo.isListT(new List<num>.fixedLength(5))); |
- Expect.equals(false, foo.isListT(new List<String>.fixedLength(5))); |
+ Expect.equals(true, foo.isListT(new List(5))); |
+ Expect.equals(false, foo.isListT(new List<Object>(5))); |
+ Expect.equals(true, foo.isListT(new List<int>(5))); |
+ Expect.equals(true, foo.isListT(new List<num>(5))); |
+ Expect.equals(false, foo.isListT(new List<String>(5))); |
} |
{ |
Foo foo = new Foo<String>(); |
- Expect.equals(true, foo.isListT(new List.fixedLength(5))); |
- Expect.equals(false, foo.isListT(new List<Object>.fixedLength(5))); |
- Expect.equals(false, foo.isListT(new List<int>.fixedLength(5))); |
- Expect.equals(false, foo.isListT(new List<num>.fixedLength(5))); |
- Expect.equals(true, foo.isListT(new List<String>.fixedLength(5))); |
+ Expect.equals(true, foo.isListT(new List(5))); |
+ Expect.equals(false, foo.isListT(new List<Object>(5))); |
+ Expect.equals(false, foo.isListT(new List<int>(5))); |
+ Expect.equals(false, foo.isListT(new List<num>(5))); |
+ Expect.equals(true, foo.isListT(new List<String>(5))); |
} |
} |
} |