OLD | NEW |
1 dart_library.library('language/regress_21793_test_none_multi', null, /* Imports
*/[ | 1 dart_library.library('language/regress_21793_test_none_multi', null, /* Imports
*/[ |
2 'dart_sdk' | 2 'dart_sdk' |
3 ], function load__regress_21793_test_none_multi(exports, dart_sdk) { | 3 ], function load__regress_21793_test_none_multi(exports, dart_sdk) { |
4 'use strict'; | 4 'use strict'; |
5 const core = dart_sdk.core; | 5 const core = dart_sdk.core; |
6 const dart = dart_sdk.dart; | 6 const dart = dart_sdk.dart; |
7 const dartx = dart_sdk.dartx; | 7 const dartx = dart_sdk.dartx; |
8 const regress_21793_test_none_multi = Object.create(null); | 8 const regress_21793_test_none_multi = Object.create(null); |
9 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); | 9 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
10 regress_21793_test_none_multi.A = dart.callableClass(function A(...args) { | 10 regress_21793_test_none_multi.A = dart.callableClass(function A(...args) { |
11 const self = this; | |
12 function call(...args) { | 11 function call(...args) { |
13 return self.call.apply(self, args); | 12 return call.call.apply(call, args); |
14 } | 13 } |
15 call.__proto__ = this.__proto__; | 14 call.__proto__ = this.__proto__; |
16 call.new.apply(call, args); | 15 call.new.apply(call, args); |
17 return call; | 16 return call; |
18 }, class A extends core.Object { | 17 }, class A extends core.Object { |
19 call(x) { | 18 call(x) { |
20 return x; | 19 return x; |
21 } | 20 } |
22 }); | 21 }); |
23 dart.setSignature(regress_21793_test_none_multi.A, { | 22 dart.setSignature(regress_21793_test_none_multi.A, { |
24 methods: () => ({call: dart.definiteFunctionType(dart.dynamic, [dart.dynamic
])}) | 23 methods: () => ({call: dart.definiteFunctionType(dart.dynamic, [dart.dynamic
])}) |
25 }); | 24 }); |
26 regress_21793_test_none_multi.main = function() { | 25 regress_21793_test_none_multi.main = function() { |
27 core.print(dart.dcall(new regress_21793_test_none_multi.A(), 499)); | 26 core.print(dart.dcall(new regress_21793_test_none_multi.A(), 499)); |
28 }; | 27 }; |
29 dart.fn(regress_21793_test_none_multi.main, VoidTodynamic()); | 28 dart.fn(regress_21793_test_none_multi.main, VoidTodynamic()); |
30 // Exports: | 29 // Exports: |
31 exports.regress_21793_test_none_multi = regress_21793_test_none_multi; | 30 exports.regress_21793_test_none_multi = regress_21793_test_none_multi; |
32 }); | 31 }); |
OLD | NEW |