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

Unified Diff: tests/compiler/dart2js/js_model/model_test.dart

Issue 2970673004: Handle static fields in js_model/model_test (Closed)
Patch Set: Updated cf. comment Created 3 years, 5 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 | « pkg/compiler/lib/src/world.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/js_model/model_test.dart
diff --git a/tests/compiler/dart2js/js_model/model_test.dart b/tests/compiler/dart2js/js_model/model_test.dart
index fe829f09a8425b7b0e34d7972935acd42f433c76..d1bed70961a16c2f5145d42f7ffbcef6f034a249 100644
--- a/tests/compiler/dart2js/js_model/model_test.dart
+++ b/tests/compiler/dart2js/js_model/model_test.dart
@@ -19,6 +19,7 @@ foo({named}) => 1;
bar(a) => !a;
class Class {
var field;
+ static var staticField;
Class();
Class.named(this.field);
@@ -40,6 +41,14 @@ main() {
new Object();
new Class.named('');
new SubClass().method();
+ Class.staticField;
+ var x = null;
+ var y1 = x == null;
+ var y2 = null == x;
+ var z1 = x?.toString();
+ var z2 = x ?? y1;
+ var z3 = x ??= y2;
+ return x;
}
'''
};
« no previous file with comments | « pkg/compiler/lib/src/world.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698