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

Unified Diff: tests/language/static_final_field2_test.dart

Issue 23638006: Merge two static_final_field tests and rewrite a negative test to a multi-test (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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/static_final_field2_test.dart
diff --git a/tests/language/static_final_field2_test.dart b/tests/language/static_final_field2_test.dart
index 4e4c188dd12639dbbaf53dc319cbc90b25274312..c80588a5499aaeb8d032c7f250993f1196900aa6 100644
--- a/tests/language/static_final_field2_test.dart
+++ b/tests/language/static_final_field2_test.dart
@@ -7,6 +7,15 @@ class A {
static const x = 1;
}
+class B {
+ const B() : n = 5;
+ final n;
+ static const a; /// 02: compile-time error
+ static const b = 3 + 5;
+ static const c; /// 02: continued
kustermann 2013/09/04 11:13:01 I think the c is not adding any benefit here, does
Søren Gjesse 2013/09/04 12:58:52 I don't think so. I just copied from the original
+}
+
main() {
A.x = 2; /// 01: static type warning, runtime error
+ new B();
}

Powered by Google App Engine
This is Rietveld 408576698