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

Unified Diff: pkg/front_end/testcases/rasta/bad_default_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/bad_default_constructor.dart.direct.expect
diff --git a/pkg/front_end/testcases/rasta/bad_default_constructor.dart.direct.expect b/pkg/front_end/testcases/rasta/bad_default_constructor.dart.direct.expect
index 6e94ed432de5322da54219170d33963dc6a95405..9ef3d02e3d8a8df03fd5d444cafb31c2c4986ce9 100644
--- a/pkg/front_end/testcases/rasta/bad_default_constructor.dart.direct.expect
+++ b/pkg/front_end/testcases/rasta/bad_default_constructor.dart.direct.expect
@@ -1,5 +1,17 @@
library;
import self as self;
+import "dart:core" as core;
-static method main() → dynamic
- throw "pkg/front_end/testcases/rasta/bad_default_constructor.dart: Error: A has no constructor that takes no arguments.";
+class A extends core::Object {
+ constructor •(dynamic x) → dynamic
+ : super core::Object::•()
+ ;
+}
+class B extends self::A {
+ constructor •() → self::B
+ : invalid-initializer;
+}
+static method main() → dynamic {
+ new self::B::•();
+ invalid-expression;
+}

Powered by Google App Engine
This is Rietveld 408576698