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

Unified Diff: pkg/front_end/testcases/expressions.dart.direct.expect

Issue 2954823002: Implement type inference for try/catch blocks. (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/expressions.dart.direct.expect
diff --git a/pkg/front_end/testcases/expressions.dart.direct.expect b/pkg/front_end/testcases/expressions.dart.direct.expect
index 0f7087de8274083fa2bf531f739779434d1bc6fc..11c1f31a5a35b8aff9240567b2323392d9b6e456 100644
--- a/pkg/front_end/testcases/expressions.dart.direct.expect
+++ b/pkg/front_end/testcases/expressions.dart.direct.expect
@@ -21,7 +21,7 @@ static method main() → dynamic {
try {
throw "fisk";
}
- on core::String catch(final dynamic e, final dynamic s) {
+ on core::String catch(final core::String e, final core::StackTrace s) {
core::print(e);
if(!s.==(null))
core::print(s);
@@ -72,7 +72,7 @@ static method main() → dynamic {
core::print(throw new core::NoSuchMethodError::_withType(null, #toString, 32, <dynamic>[].toList(growable: false), <dynamic, dynamic>{}, null));
throw "Shouldn't work";
}
- on core::NoSuchMethodError catch(final dynamic e) {
+ on core::NoSuchMethodError catch(final core::NoSuchMethodError e) {
core::print("As expected: ${e}");
}
core::print(core::int::parse("42"));
« no previous file with comments | « pkg/front_end/testcases/accessors.dart.direct.expect ('k') | pkg/front_end/testcases/inference/try_catch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698