Index: tests/language_strong/method_override_test.dart |
diff --git a/tests/language_strong/method_override_test.dart b/tests/language_strong/method_override_test.dart |
index b1a8b1d5fde371d6f3639108a296724e9093d7e6..c5428d3e73b1161cb245388422fd03cfa07e03f7 100644 |
--- a/tests/language_strong/method_override_test.dart |
+++ b/tests/language_strong/method_override_test.dart |
@@ -19,12 +19,11 @@ class MapBase<K, V> implements Map<K, V> { |
Expect.isTrue(remove is RemoveFunctionType); |
Expect.isTrue(remove is RemoveFunctionType<int, int>); |
- Expect.isTrue(remove is !RemoveFunctionType<String, int>); |
- Expect.isTrue(remove is !RemoveFunctionType<MapBase<int, int>, int>); |
+ Expect.isTrue(remove is! RemoveFunctionType<String, int>); |
+ Expect.isTrue(remove is! RemoveFunctionType<MapBase<int, int>, int>); |
} |
} |
- |
class MethodOverrideTest extends MapBase<String, String> { |
String remove(String key) { |
throw 'Must be implemented'; |
@@ -36,14 +35,13 @@ class MethodOverrideTest extends MapBase<String, String> { |
Expect.isTrue(remove is RemoveFunctionType); |
Expect.isTrue(remove is RemoveFunctionType<String, String>); |
- Expect.isTrue(remove is !RemoveFunctionType<int, int>); |
+ Expect.isTrue(remove is! RemoveFunctionType<int, int>); |
Expect.isTrue(super.remove is RemoveFunctionType); |
Expect.isTrue(super.remove is RemoveFunctionType<String, String>); |
- Expect.isTrue(super.remove is !RemoveFunctionType<int, int>); |
+ Expect.isTrue(super.remove is! RemoveFunctionType<int, int>); |
} |
} |
- |
main() { |
// Since method overriding is only checked statically, explicitly check |
// the subtyping relation using a function type alias. |