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

Unified Diff: tests/language_strong/covariant_override/runtime_check_test.dart

Issue 2653493004: Change @checked to covariant in strong tests (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | tests/language_strong/covariant_override/tear_off_type_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6f538dcae3d064bc114b2f293d2d545ab903007e..a47118fe9d3a000ce984b7a8a0ef1a5cbcee4818 100644
--- a/tests/language_strong/covariant_override/runtime_check_test.dart
+++ b/tests/language_strong/covariant_override/runtime_check_test.dart
@@ -3,17 +3,14 @@
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
-import 'package:meta/meta.dart' show checked;
-
-// Test runtime behavior of @checked
class View {
addChild(View v) {}
transform(View fn(View v)) {}
}
class MyView extends View {
- addChild(@checked MyView v) {}
- transform(@checked MyView fn(Object v)) {}
+ addChild(covariant MyView v) {}
+ transform(covariant MyView fn(Object v)) {}
}
main() {
@@ -25,7 +22,7 @@ main() {
mv.transform((_) => new MyView());
- // TODO(jmesserly): these *should* be a cast failures, but DDC is currently
+ // TODO(jmesserly): these *should* be cast failures, but DDC is currently
// ignoring function type failures w/ a warning at the console...
// * -> * not a subtype of Object -> MyView
« no previous file with comments | « no previous file | tests/language_strong/covariant_override/tear_off_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698