Index: tests/language_strong/const_test.dart |
diff --git a/tests/language_strong/const_test.dart b/tests/language_strong/const_test.dart |
index 65dc19d76f1f750ed5536257026bbf2c41fc8d83..4d3fa364b9d53e58c7a82551c7f0171e84c1258b 100644 |
--- a/tests/language_strong/const_test.dart |
+++ b/tests/language_strong/const_test.dart |
@@ -7,21 +7,24 @@ |
import "package:expect/expect.dart"; |
class AConst { |
- const AConst() : b_ = 3 ; |
+ const AConst() : b_ = 3; |
final int b_; |
} |
- |
class BConst { |
const BConst(); |
set foo(value) {} |
- get foo { return 5; } |
+ get foo { |
+ return 5; |
+ } |
+ |
+ operator [](ix) { |
+ return ix; |
+ } |
- operator [](ix) { return ix; } |
operator []=(ix, value) {} |
} |
- |
testMain() { |
var o = const AConst(); |
Expect.equals(3, o.b_); |
@@ -33,7 +36,6 @@ testMain() { |
Expect.equals(5, y); |
} |
- |
main() { |
for (int i = 0; i < 20; i++) { |
testMain(); |