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

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

Issue 2949753002: Print static types of conditional expressions. (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 12c517ddc0886d642eb4240eec52365880ac1797..dfb2659daaf304b13ac48527f5b3b9e6e0fba7be 100644
--- a/pkg/front_end/testcases/rasta/parser_error.dart.direct.expect
+++ b/pkg/front_end/testcases/rasta/parser_error.dart.direct.expect
@@ -1,10 +1,5 @@
library;
import self as self;
-import "package:expect/expect.dart" as exp;
-import "dart:core" as core;
-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>[]));
-}
+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 ^";

Powered by Google App Engine
This is Rietveld 408576698