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

Unified Diff: pkg/kernel/testcases/closures/static_tear_off.dart.expect

Issue 2808443002: Switch to Fasta in "golden" tests of closure conversion (Closed)
Patch Set: Use testing framework from Fasta package in Closure Conversion Created 3 years, 8 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/kernel/testcases/closures/static_tear_off.dart.expect
diff --git a/pkg/kernel/testcases/closures/static_tear_off.dart.expect b/pkg/kernel/testcases/closures/static_tear_off.dart.expect
index b316f7fa50b9e60135b9fc4146215c19511b20d2..5426f092ec36b0dd951b415b5e909168540342a6 100644
--- a/pkg/kernel/testcases/closures/static_tear_off.dart.expect
+++ b/pkg/kernel/testcases/closures/static_tear_off.dart.expect
@@ -2,13 +2,13 @@ library;
import self as self;
import "dart:core" as core;
-static method f_1_1_no_default(dynamic a, [dynamic b]) → dynamic {
+static method f_1_1_no_default(dynamic a, [dynamic b = null]) → dynamic {
return a.+(b);
}
static method f_1_1_default(dynamic a, [dynamic b = 2]) → dynamic {
return a.+(b);
}
-static method f_1_b_no_default(dynamic a, {dynamic b}) → dynamic {
+static method f_1_b_no_default(dynamic a, {dynamic b = null}) → dynamic {
return a.+(b);
}
static method f_1_b_default(dynamic a, {dynamic b = 2}) → dynamic {
@@ -33,7 +33,7 @@ static method test_1(core::Function f, core::bool hasDefault) → dynamic {
result = f.call(40);
threw = false;
}
- on dynamic catch(dynamic _) {
+ on dynamic catch(final dynamic _) {
}
if(hasDefault) {
if(threw)
@@ -54,11 +54,11 @@ static method main(dynamic arguments) → dynamic {
self::test_1_b(MakeClosure<(dynamic, {b: dynamic}) → dynamic>(self::closure#f_1_b_no_default, null), false);
self::test_1_b(MakeClosure<(dynamic, {b: dynamic}) → dynamic>(self::closure#f_1_b_default, null), true);
}
-static method closure#f_1_1_no_default(Vector #contextParameter, dynamic a, [dynamic b]) → dynamic
+static method closure#f_1_1_no_default(Vector #contextParameter, dynamic a, [dynamic b = null]) → dynamic
return self::f_1_1_no_default(a, b);
static method closure#f_1_1_default(Vector #contextParameter, dynamic a, [dynamic b = 2]) → dynamic
return self::f_1_1_default(a, b);
-static method closure#f_1_b_no_default(Vector #contextParameter, dynamic a, {dynamic b}) → dynamic
+static method closure#f_1_b_no_default(Vector #contextParameter, dynamic a, {dynamic b = null}) → dynamic
return self::f_1_b_no_default(a, b: b);
static method closure#f_1_b_default(Vector #contextParameter, dynamic a, {dynamic b = 2}) → dynamic
return self::f_1_b_default(a, b: b);
« no previous file with comments | « pkg/kernel/testcases/closures/non_void_context.dart.expect ('k') | pkg/kernel/testcases/closures/type_variables.dart.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698