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(); |
} |