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

Unified Diff: pkg/front_end/testcases/rasta/parser_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/parser_error.dart.direct.expect
diff --git a/pkg/front_end/testcases/rasta/parser_error.dart.direct.expect b/pkg/front_end/testcases/rasta/parser_error.dart.direct.expect
index dfb2659daaf304b13ac48527f5b3b9e6e0fba7be..12c517ddc0886d642eb4240eec52365880ac1797 100644
--- a/pkg/front_end/testcases/rasta/parser_error.dart.direct.expect
+++ b/pkg/front_end/testcases/rasta/parser_error.dart.direct.expect
@@ -1,5 +1,10 @@
library;
import self as self;
+import "package:expect/expect.dart" as exp;
+import "dart:core" as core;
-static method main() → dynamic
- throw "pkg/front_end/testcases/rasta/parser_error.dart:10:7: Error: Expected an expression, but got '?'.\n if (?b) return b; /// 01: compile-time error\n ^";
+static method test() → dynamic
+ invalid-statement;
+static method main() → dynamic {
+ exp::Expect::equals(6, throw core::_genericNoSuchMethod(null, #test, <dynamic>[1], <dynamic, dynamic>{#b: 2, #c: 3}, <dynamic>[]));
+}

Powered by Google App Engine
This is Rietveld 408576698