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

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

Issue 1152583002: Add constructors to signatures (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: 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
« lib/runtime/dart/core.js ('K') | « test/codegen/expect/sunflower/sunflower.js ('k') | no next file » | 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 f60f0982d842a50b15f47b82bc683fca4b242d5e..75975a5605fa0a35defebfe5155de86da68cd920 100644
--- a/test/codegen/expect/temps.js
+++ b/test/codegen/expect/temps.js
@@ -12,6 +12,9 @@ var core = dart.import(core);
this[_function] = func;
}
}
+ dart.setSignature(FormalCollision, {
+ constructors: () => ({FormalCollision: [FormalCollision, [core.int, core.int, core.Function]]})
+ });
let _opt = Symbol('_opt');
class OptionalArg extends core.Object {
OptionalArg(opt) {
@@ -25,6 +28,12 @@ var core = dart.import(core);
}
}
dart.defineNamedConstructor(OptionalArg, 'named');
+ dart.setSignature(OptionalArg, {
+ constructors: () => ({
+ OptionalArg: [OptionalArg, [], [core.int]],
+ named: [OptionalArg, [], {op: core.int}]
+ })
+ });
function main() {
core.print(new FormalCollision(1, 2, dart.fn(x => x)));
core.print(new OptionalArg()[_opt]);
« lib/runtime/dart/core.js ('K') | « test/codegen/expect/sunflower/sunflower.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698