Index: pkg/front_end/testcases/rasta/malformed_const_constructor.dart.direct.expect |
diff --git a/pkg/front_end/testcases/rasta/malformed_const_constructor.dart.direct.expect b/pkg/front_end/testcases/rasta/malformed_const_constructor.dart.direct.expect |
index d6dd375d352dc822e71f71fccb504dee83885d96..e2a6950db435d8ac4a3eb9aa96b7c40b7cbc7645 100644 |
--- a/pkg/front_end/testcases/rasta/malformed_const_constructor.dart.direct.expect |
+++ b/pkg/front_end/testcases/rasta/malformed_const_constructor.dart.direct.expect |
@@ -1,5 +1,12 @@ |
library; |
import self as self; |
+import "dart:core" as core; |
-static method main() → dynamic |
- throw "pkg/front_end/testcases/rasta/malformed_const_constructor.dart:8:5: Error: Expected a function body, but got ':'.\n : x = 'foo'\n ^"; |
+class A extends core::Object { |
+ const constructor •() → dynamic |
+ : invalid-initializer; |
+} |
+static method main() → dynamic { |
+ const self::A::•(); |
+ new self::A::•(); |
+} |