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

Unified Diff: test/codegen/fieldtest.dart

Issue 1141663003: fixes #185, track const ctor dependencies, plus a static field fix (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: format Created 5 years, 7 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 | « test/codegen/expect/sunflower/sunflower.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/fieldtest.dart
diff --git a/test/codegen/fieldtest.dart b/test/codegen/fieldtest.dart
index 72df12e38cb7f988f9036b31ba6d5ff290323ed1..77ceff397076db069ca062a503f568b4bc189445 100644
--- a/test/codegen/fieldtest.dart
+++ b/test/codegen/fieldtest.dart
@@ -51,6 +51,19 @@ class Generic<T> {
static String bar = 'hello';
}
+class StaticFieldOrder1 {
+ static const a = b + 1;
+ static const c = d + 2;
+ static const b = c + 3;
+ static const d = 4;
+}
+class StaticFieldOrder2 {
+ static const a = StaticFieldOrder2.b + 1;
+ static const c = StaticFieldOrder2.d + 2;
+ static const b = StaticFieldOrder2.c + 3;
+ static const d = 4;
+}
+
void main() {
var a = new A();
foo(a);
« no previous file with comments | « test/codegen/expect/sunflower/sunflower.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698