OLD | NEW |
1 dart_library.library('language/issue_22780_test_01_multi', null, /* Imports */[ | 1 dart_library.library('language/issue_22780_test_01_multi', null, /* Imports */[ |
2 'dart_sdk' | 2 'dart_sdk' |
3 ], function load__issue_22780_test_01_multi(exports, dart_sdk) { | 3 ], function load__issue_22780_test_01_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 issue_22780_test_01_multi = Object.create(null); | 8 const issue_22780_test_01_multi = Object.create(null); |
| 9 let VoidToString = () => (VoidToString = dart.constFn(dart.definiteFunctionTyp
e(core.String, [])))(); |
9 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); | 10 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
10 issue_22780_test_01_multi.main = function() { | 11 issue_22780_test_01_multi.main = function() { |
11 function f() { | 12 function f() { |
12 return dart.str`Oh, the joy of ${f()}`; | 13 return dart.str`Oh, the joy of ${f()}`; |
13 } | 14 } |
14 dart.fn(f, VoidTodynamic()); | 15 dart.fn(f, VoidToString()); |
15 core.print(f()); | 16 core.print(f()); |
16 }; | 17 }; |
17 dart.fn(issue_22780_test_01_multi.main, VoidTodynamic()); | 18 dart.fn(issue_22780_test_01_multi.main, VoidTodynamic()); |
18 // Exports: | 19 // Exports: |
19 exports.issue_22780_test_01_multi = issue_22780_test_01_multi; | 20 exports.issue_22780_test_01_multi = issue_22780_test_01_multi; |
20 }); | 21 }); |
OLD | NEW |