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

Unified Diff: pkg/kernel/testcases/closures/non_void_context.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/non_void_context.dart.expect
diff --git a/pkg/kernel/testcases/closures/non_void_context.dart.expect b/pkg/kernel/testcases/closures/non_void_context.dart.expect
index 06282c4c2484265024b48e48189c7336cb227148..e5a49ab668180af3bbcf789536ba39e5fa9ecfc5 100644
--- a/pkg/kernel/testcases/closures/non_void_context.dart.expect
+++ b/pkg/kernel/testcases/closures/non_void_context.dart.expect
@@ -3,29 +3,29 @@ import self as self;
static field dynamic v;
static method main(dynamic arguments) → dynamic {
- final Vector #context = MakeVector(2);
- #context[1] = null;
+ final Vector #context = MakeVector(3);
+ #context[2] = null;
(MakeClosure<(dynamic) → dynamic>(self::closure#main#function, #context)).call(87);
if(!self::v.==(87)) {
throw "Unexpected value in v: ${self::v}";
}
- if(!(#context[1]).==(87)) {
- throw "Unexpected value in w: ${#context[1]}";
+ if(!(#context[2]).==(87)) {
+ throw "Unexpected value in w: ${#context[2]}";
}
self::v = true;
(MakeClosure<() → dynamic>(self::closure#main#function#1, #context)).call();
if(!self::v.==(false)) {
throw "Unexpected value in v: ${self::v}";
}
- if(!(#context[1]).==(false)) {
- throw "Unexpected value in w: ${#context[1]}";
+ if(!(#context[2]).==(false)) {
+ throw "Unexpected value in w: ${#context[2]}";
}
}
static method closure#main#function(Vector #contextParameter, dynamic x) → dynamic {
- return self::v = #contextParameter[1] = x;
+ return self::v = #contextParameter[2] = x;
}
static method closure#main#function#1(Vector #contextParameter) → dynamic {
- for (; #contextParameter[1] = self::v; ) {
+ for (; #contextParameter[2] = self::v; ) {
self::v = false;
}
}

Powered by Google App Engine
This is Rietveld 408576698