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

Unified Diff: test/codegen/expect/temps.js

Issue 1138793002: Tag closures with their types (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: More comment fixes Created 5 years, 7 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
« no previous file with comments | « test/codegen/expect/sunflower/sunflower.js ('k') | test/codegen/expect/try_catch.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/temps.js
diff --git a/test/codegen/expect/temps.js b/test/codegen/expect/temps.js
index 87f2989d9d9a051418bdf760c8165ff1a5ff6d0c..163cdd2cee9541d0697f51ba71fa7329dc678e04 100644
--- a/test/codegen/expect/temps.js
+++ b/test/codegen/expect/temps.js
@@ -12,6 +12,7 @@ var core = dart.import(core);
this[_function] = func;
}
}
+ dart.setSignature(FormalCollision, {});
let _opt = Symbol('_opt');
class OptionalArg extends core.Object {
OptionalArg(opt) {
@@ -25,12 +26,13 @@ var core = dart.import(core);
}
}
dart.defineNamedConstructor(OptionalArg, 'named');
- // Function main: () → dynamic
+ dart.setSignature(OptionalArg, {});
function main() {
- core.print(new FormalCollision(1, 2, x => x));
+ core.print(new FormalCollision(1, 2, dart.fn(x => x)));
core.print(new OptionalArg()[_opt]);
core.print(new OptionalArg.named()[_opt]);
}
+ dart.fn(main);
// Exports:
exports.FormalCollision = FormalCollision;
exports.OptionalArg = OptionalArg;
« no previous file with comments | « test/codegen/expect/sunflower/sunflower.js ('k') | test/codegen/expect/try_catch.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698