OLD | NEW |
1 dart_library.library('language/regress_21016_test', null, /* Imports */[ | 1 dart_library.library('language/regress_21016_test', null, /* Imports */[ |
2 'dart_sdk' | 2 'dart_sdk' |
3 ], function load__regress_21016_test(exports, dart_sdk) { | 3 ], function load__regress_21016_test(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_21016_test = Object.create(null); | 8 const regress_21016_test = Object.create(null); |
9 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun
ctionType(dart.dynamic, [dart.dynamic])))(); | 9 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun
ctionType(dart.dynamic, [dart.dynamic])))(); |
10 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); | 10 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
(...skipping 26 matching lines...) Expand all Loading... |
37 methods: () => ({tearMe: dart.definiteFunctionType(dart.dynamic, [dart.dynam
ic])}) | 37 methods: () => ({tearMe: dart.definiteFunctionType(dart.dynamic, [dart.dynam
ic])}) |
38 }); | 38 }); |
39 dart.defineLazy(regress_21016_test, { | 39 dart.defineLazy(regress_21016_test, { |
40 get list() { | 40 get list() { |
41 return []; | 41 return []; |
42 }, | 42 }, |
43 set list(_) {} | 43 set list(_) {} |
44 }); | 44 }); |
45 regress_21016_test.main = function() { | 45 regress_21016_test.main = function() { |
46 let holder = new regress_21016_test.Holder(); | 46 let holder = new regress_21016_test.Holder(); |
47 let hide = dart.dcall(dart.fn(X => X, dynamicTodynamic()), dart.bind(holder,
'tearMe')); | 47 let hide = dart.fn(X => X, dynamicTodynamic())(dart.bind(holder, 'tearMe')); |
48 dart.dcall(hide, new regress_21016_test.A()); | 48 dart.dcall(hide, new regress_21016_test.A()); |
49 regress_21016_test.list[dartx.add](dart.bind(holder, 'tearMe')); | 49 regress_21016_test.list[dartx.add](dart.bind(holder, 'tearMe')); |
50 let x = regress_21016_test.list[dartx.get](0); | 50 let x = regress_21016_test.list[dartx.get](0); |
51 dart.dcall(x, new regress_21016_test.B()); | 51 dart.dcall(x, new regress_21016_test.B()); |
52 }; | 52 }; |
53 dart.fn(regress_21016_test.main, VoidTodynamic()); | 53 dart.fn(regress_21016_test.main, VoidTodynamic()); |
54 // Exports: | 54 // Exports: |
55 exports.regress_21016_test = regress_21016_test; | 55 exports.regress_21016_test = regress_21016_test; |
56 }); | 56 }); |
OLD | NEW |