Index: tests/language/const_test.dart |
diff --git a/tests/language/const_test.dart b/tests/language/const_test.dart |
index 9cdb07db2e85f3e33073208ddcf20e15d67cf0f7..d97f547524a0c8483c8fcdfc6bd2f87818b0465f 100644 |
--- a/tests/language/const_test.dart |
+++ b/tests/language/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(); |