| Index: tests/language/generic_methods_type_expression_test.dart
|
| diff --git a/tests/language/generic_methods_type_expression_test.dart b/tests/language/generic_methods_type_expression_test.dart
|
| index fd9d2e337645af74948902d0fa6777c664bd90bb..2064584200cfc0dd1107d10b67cb079cfe83dea3 100644
|
| --- a/tests/language/generic_methods_type_expression_test.dart
|
| +++ b/tests/language/generic_methods_type_expression_test.dart
|
| @@ -12,11 +12,11 @@ library generic_methods_type_expression_test;
|
|
|
| import "package:expect/expect.dart";
|
|
|
| -bool f1<T>(Object o) => o is T; // /// 01: static type warning
|
| +bool f1<T>(Object o) => o is T; // //# 01: static type warning
|
|
|
| bool f2<T>(Object o) => o is List<T>;
|
|
|
| -bool f3<T>(Object o) => o is! T; // /// 03: static type warning
|
| +bool f3<T>(Object o) => o is! T; // //# 03: static type warning
|
|
|
| bool f4<T>(Object o) => o is! List<T>;
|
|
|
| @@ -42,12 +42,12 @@ class IsMap<A> {
|
| main() {
|
| String s = "Hello!";
|
| List<String> ss = <String>[s];
|
| - Expect.throws(() => f1<int>(42), (e) => e is TypeError); // /// 01: continued
|
| - Expect.throws(() => f1<String>(42), (e) => e is TypeError); // /// 01: continued
|
| + Expect.throws(() => f1<int>(42), (e) => e is TypeError); // //# 01: continued
|
| + Expect.throws(() => f1<String>(42), (e) => e is TypeError); // //# 01: continued
|
| Expect.equals(f2<int>(<int>[42]), true);
|
| Expect.equals(f2<String>(<int>[42]), true); // `is List<dynamic>` is true.
|
| - Expect.throws(() => f3<int>(42), (e) => e is TypeError); // /// 03: continued
|
| - Expect.throws(() => f3<String>(42), (e) => e is TypeError); // /// 03: continued
|
| + Expect.throws(() => f3<int>(42), (e) => e is TypeError); // //# 03: continued
|
| + Expect.throws(() => f3<String>(42), (e) => e is TypeError); // //# 03: continued
|
| Expect.equals(f4<int>(<int>[42]), false);
|
| Expect.equals(f4<String>(<int>[42]), false); // `is! List<dynamic>` is false.
|
| Expect.equals(f5<String>(s), s); // `s as dynamic == s`
|
|
|