| Index: tests/language/final_syntax_test.dart
|
| diff --git a/tests/language/final_syntax_test.dart b/tests/language/final_syntax_test.dart
|
| index c0189bd54be635c1cf713c9ac040699e3244a254..d7ce06816b6fda35eb6ca6969f3f6b588dd85a11 100644
|
| --- a/tests/language/final_syntax_test.dart
|
| +++ b/tests/language/final_syntax_test.dart
|
| @@ -14,20 +14,20 @@ main() {
|
| Expect.equals(87, F2); /// 04: compile-time error
|
|
|
| Expect.isTrue(P0 is Point);
|
| - Expect.isTrue(P1 is int); /// 05: compile-time error
|
| - Expect.isTrue(P2 is Point); /// 06: compile-time error
|
| - Expect.isTrue(P3 is int); /// 07: compile-time error
|
| + Expect.isTrue(P1 is int);
|
| + Expect.isTrue(P2 is Point);
|
| + Expect.isTrue(P3 is int);
|
|
|
| Expect.isTrue(A0 is int);
|
| Expect.isTrue(A1 is int);
|
| - Expect.isTrue(A2 is int); /// 08: compile-time error
|
| + Expect.isTrue(A2 is int); /// 08: runtime error
|
| Expect.isTrue(A3 is int); /// 08: continued
|
|
|
| Expect.isTrue(C0.X is C1);
|
| Expect.isTrue(C0.X.x is C1); /// 09: compile-time error
|
|
|
| Expect.equals("Hello 42", B2);
|
| - Expect.equals("42Hello", B3); /// 10: compile-time error
|
| + Expect.equals("42Hello", B3); /// 10: runtime error
|
| }
|
|
|
| final F0 = 42;
|
| @@ -44,9 +44,9 @@ class Point {
|
| // Check that compile time expressions can include invocations of
|
| // user-defined const constructors.
|
| final P0 = const Point(0, 0);
|
| -final P1 = const Point(0, 0) + 1; /// 05: continued
|
| -final P2 = new Point(0, 0); /// 06: continued
|
| -final P3 = new Point(0, 0) + 1; /// 07: continued
|
| +final P1 = const Point(0, 0) + 1;
|
| +final P2 = new Point(0, 0);
|
| +final P3 = new Point(0, 0) + 1;
|
|
|
| // Check that we cannot have cyclic references in compile time
|
| // expressions.
|
|
|