| Index: tests/language/compile_time_constant_test.dart
|
| diff --git a/tests/language/compile_time_constant_test.dart b/tests/language/compile_time_constant_test.dart
|
| index ca433394c4ad3d75b7d67b4441a5cfee55596d64..53e9198dec084c46ee8f8175ada4300a49a305ac 100644
|
| --- a/tests/language/compile_time_constant_test.dart
|
| +++ b/tests/language/compile_time_constant_test.dart
|
| @@ -4,9 +4,9 @@
|
|
|
| class Bad {
|
| int foo;
|
| - static int bar
|
| - = foo /// 01: compile-time error
|
| - ;
|
| + const int bar =
|
| + foo /// 01: compile-time error
|
| + -1;
|
| static const int toto =
|
| bar /// 02: compile-time error
|
| -3;
|
| @@ -15,6 +15,6 @@ class Bad {
|
| void use(x) {}
|
|
|
| main() {
|
| - use(Bad.bar);
|
| + use(new Bad().bar);
|
| use(Bad.toto);
|
| }
|
|
|