Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(550)

Unified Diff: pkg/front_end/testcases/rasta/malformed_const_constructor.dart.direct.expect

Issue 2953503002: Only set types of conditional expressions in strong mode. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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::•();
+}

Powered by Google App Engine
This is Rietveld 408576698