Index: test/codegen_expected/language/call_test.js |
diff --git a/test/codegen_expected/language/call_test.js b/test/codegen_expected/language/call_test.js |
index 7451df34d26a0183ee2fdfe07b48adbbd2de454a..dcb4c1f9232a34c9d293d50b565a1fa8cb0b58aa 100644 |
--- a/test/codegen_expected/language/call_test.js |
+++ b/test/codegen_expected/language/call_test.js |
@@ -8,17 +8,16 @@ dart_library.library('language/call_test', null, /* Imports */[ |
const dartx = dart_sdk.dartx; |
const expect$ = expect.expect; |
const call_test = Object.create(null); |
- let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic])))(); |
- let __Todynamic = () => (__Todynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [], [dart.dynamic])))(); |
- let __Todynamic$ = () => (__Todynamic$ = dart.constFn(dart.definiteFunctionType(dart.dynamic, [], {x: dart.dynamic, y: dart.dynamic})))(); |
- let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [])))(); |
let dynamicTobool = () => (dynamicTobool = dart.constFn(dart.definiteFunctionType(core.bool, [dart.dynamic])))(); |
+ let __Tobool = () => (__Tobool = dart.constFn(dart.definiteFunctionType(core.bool, [], [dart.dynamic])))(); |
+ let __ToString = () => (__ToString = dart.constFn(dart.definiteFunctionType(core.String, [], {x: dart.dynamic, y: dart.dynamic})))(); |
+ let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [])))(); |
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))(); |
call_test.main = function() { |
function bar(a) { |
return typeof a == 'string'; |
} |
- dart.fn(bar, dynamicTodynamic()); |
+ dart.fn(bar, dynamicTobool()); |
for (let i = 0; i < 20; i++) { |
expect$.Expect.isFalse(bar(1)); |
expect$.Expect.isTrue(dart.dsend(bar, 'call', 'foo')); |
@@ -27,7 +26,7 @@ dart_library.library('language/call_test', null, /* Imports */[ |
if (a === void 0) a = "a"; |
return typeof a == 'string'; |
} |
- dart.fn(opt_arg, __Todynamic()); |
+ dart.fn(opt_arg, __Tobool()); |
for (let i = 0; i < 20; i++) { |
expect$.Expect.isFalse(opt_arg(1)); |
expect$.Expect.isFalse(dart.dsend(opt_arg, 'call', 1)); |
@@ -41,7 +40,7 @@ dart_library.library('language/call_test', null, /* Imports */[ |
let y = opts && 'y' in opts ? opts.y : 22; |
return dart.str`${x}${y}`; |
} |
- dart.fn(named_arg, __Todynamic$()); |
+ dart.fn(named_arg, __ToString()); |
for (let i = 0; i < 20; i++) { |
expect$.Expect.equals("1122", named_arg()); |
expect$.Expect.equals("1122", dart.dsend(named_arg, 'call')); |