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

Unified Diff: tests/language_strong/type_promotion_closure_test.dart

Issue 2571363002: fixes #27385, implement virtual fields in DDC (Closed)
Patch Set: format Created 4 years 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/type_promotion_closure_test.dart
diff --git a/tests/language_strong/type_promotion_closure_test.dart b/tests/language_strong/type_promotion_closure_test.dart
index 5c594439f65d03d3f6bedf6fcbd86097fea1a7e6..5b0b2c0224a25c59c7af14c56bbcdf98699a7a13 100644
--- a/tests/language_strong/type_promotion_closure_test.dart
+++ b/tests/language_strong/type_promotion_closure_test.dart
@@ -4,18 +4,20 @@
// Test type promotion of locals potentially mutated in closures.
+import "package:meta/meta.dart" show virtual;
+
class A {
- var a = "a";
+ @virtual var a = "a";
A operator +(int i) => this;
}
class B extends A {
- var b = "b";
+ @virtual var b = "b";
}
class C extends B {
- var c = "c";
+ @virtual var c = "c";
}
class D extends A {
- var d = "d";
+ @virtual var d = "d";
}
class E extends D implements C {
var a = "";
« no previous file with comments | « tests/language_strong/super_field_test.dart ('k') | tests/lib_strong/mirrors/instance_members_with_override_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698