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

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

Issue 2998803002: [kernel] Support for top-level generic functions. (Closed)
Patch Set: Review comments. Created 3 years, 4 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/catch.dart.expect
diff --git a/pkg/kernel/testcases/closures/catch.dart.expect b/pkg/kernel/testcases/closures/catch.dart.expect
index c67759d4af19ad835332500184bc11726a3f45d0..04104173c9b33c83a5ca06713c417c547b21530e 100644
--- a/pkg/kernel/testcases/closures/catch.dart.expect
+++ b/pkg/kernel/testcases/closures/catch.dart.expect
@@ -8,16 +8,16 @@ static method main() → dynamic {
throw "Fisk";
}
on core::String catch(dynamic #t1, dynamic #t2) {
- final Vector #context = MakeVector(3);
- #context[1] = #t1;
- #context[2] = #t2;
+ final Vector #context = MakeVector(4);
+ #context[2] = #t1;
+ #context[3] = #t2;
c = MakeClosure<() → dynamic>(self::closure#main#function, #context);
}
c.call();
core::print("TEST PASSED");
}
static method closure#main#function(Vector #contextParameter) → dynamic {
- core::print(#contextParameter[1]);
- if(!(#contextParameter[2]).==(null))
- core::print(#contextParameter[2]);
+ core::print(#contextParameter[2]);
+ if(!(#contextParameter[3]).==(null))
+ core::print(#contextParameter[3]);
}

Powered by Google App Engine
This is Rietveld 408576698