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

Unified Diff: pkg/front_end/testcases/rasta/type_with_parse_error.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/type_with_parse_error.dart.direct.expect
diff --git a/pkg/front_end/testcases/rasta/type_with_parse_error.dart.direct.expect b/pkg/front_end/testcases/rasta/type_with_parse_error.dart.direct.expect
index 9132459fa777d0838fc8e527a148e2885829c726..18d0cca19bbcd65decb28363218f9e624896ffac 100644
--- a/pkg/front_end/testcases/rasta/type_with_parse_error.dart.direct.expect
+++ b/pkg/front_end/testcases/rasta/type_with_parse_error.dart.direct.expect
@@ -1,5 +1,18 @@
library;
import self as self;
+import "dart:core" as core;
-static method main() → dynamic
- throw "pkg/front_end/testcases/rasta/type_with_parse_error.dart:21:3: Error: Expected a declaration, but got 'int'.\n int i\n ^";
+class A extends core::Object {
+ constructor •() → self::A
+ : super core::Object::•();
+ method foo() → dynamic {
+ throw core::_malformedTypeError("'B' is not a type.");
+ }
+}
+class B extends core::Object {
+ constructor •() → self::B
+ : super core::Object::•();
+}
+static method main() → dynamic {
+ throw core::_malformedTypeError("'B' is not a type.");
+}

Powered by Google App Engine
This is Rietveld 408576698