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

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

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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
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));

Powered by Google App Engine
This is Rietveld 408576698