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

Unified Diff: tests/language/static_final_field2_test.dart

Issue 51763007: Fix language/static_final_field2_test to work with tree-shaking in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « tests/language/language_dart2js.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/static_final_field2_test.dart
diff --git a/tests/language/static_final_field2_test.dart b/tests/language/static_final_field2_test.dart
index c80588a5499aaeb8d032c7f250993f1196900aa6..2c550a33f3da2ecd3383df90abaed4b20c3b1e33 100644
--- a/tests/language/static_final_field2_test.dart
+++ b/tests/language/static_final_field2_test.dart
@@ -12,10 +12,11 @@ class B {
final n;
static const a; /// 02: compile-time error
static const b = 3 + 5;
- static const c; /// 02: continued
}
main() {
A.x = 2; /// 01: static type warning, runtime error
new B();
+ print(B.b);
+ print(B.a); /// 02: continued
}
« no previous file with comments | « tests/language/language_dart2js.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698