Index: tests/language_strong/covariant_override/runtime_check_test.dart |
diff --git a/tests/language_strong/covariant_override/runtime_check_test.dart b/tests/language_strong/covariant_override/runtime_check_test.dart |
index a47118fe9d3a000ce984b7a8a0ef1a5cbcee4818..fc8a6cec741cb2e2089c66a0f00d4c677abb97dc 100644 |
--- a/tests/language_strong/covariant_override/runtime_check_test.dart |
+++ b/tests/language_strong/covariant_override/runtime_check_test.dart |
@@ -8,6 +8,7 @@ class View { |
addChild(View v) {} |
transform(View fn(View v)) {} |
} |
+ |
class MyView extends View { |
addChild(covariant MyView v) {} |
transform(covariant MyView fn(Object v)) {} |
@@ -16,7 +17,7 @@ class MyView extends View { |
main() { |
dynamic mv = new MyView(); |
dynamic v = new View(); |
- |
+ |
mv.addChild(mv); |
Expect.throws(() => mv.addChild(v)); |