OLD | NEW |
1 dart_library.library('language/regress_23046_test', null, /* Imports */[ | 1 dart_library.library('language/regress_23046_test', null, /* Imports */[ |
2 'dart_sdk', | 2 'dart_sdk', |
3 'expect' | 3 'expect' |
4 ], function load__regress_23046_test(exports, dart_sdk, expect) { | 4 ], function load__regress_23046_test(exports, dart_sdk, expect) { |
5 'use strict'; | 5 'use strict'; |
6 const core = dart_sdk.core; | 6 const core = dart_sdk.core; |
7 const dart = dart_sdk.dart; | 7 const dart = dart_sdk.dart; |
8 const dartx = dart_sdk.dartx; | 8 const dartx = dart_sdk.dartx; |
9 const expect$ = expect.expect; | 9 const expect$ = expect.expect; |
10 const regress_23046_test = Object.create(null); | 10 const regress_23046_test = Object.create(null); |
11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); | 11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
12 regress_23046_test.y = 'foo'; | 12 regress_23046_test.y = 'foo'; |
13 regress_23046_test.x = dart.str`${regress_23046_test.y}"`; | 13 regress_23046_test.x = dart.str`${regress_23046_test.y}"`; |
14 regress_23046_test.m = dart.const(dart.map([regress_23046_test.x, 0, regress_2
3046_test.y, 1])); | 14 regress_23046_test.m = dart.const(dart.map([regress_23046_test.x, 0, regress_2
3046_test.y, 1], core.String, core.int)); |
15 regress_23046_test.main = function() { | 15 regress_23046_test.main = function() { |
16 expect$.Expect.equals(regress_23046_test.x, 'foo"'); | 16 expect$.Expect.equals(regress_23046_test.x, 'foo"'); |
17 expect$.Expect.equals(regress_23046_test.m[dartx.length], 2); | 17 expect$.Expect.equals(regress_23046_test.m[dartx.length], 2); |
18 }; | 18 }; |
19 dart.fn(regress_23046_test.main, VoidTodynamic()); | 19 dart.fn(regress_23046_test.main, VoidTodynamic()); |
20 // Exports: | 20 // Exports: |
21 exports.regress_23046_test = regress_23046_test; | 21 exports.regress_23046_test = regress_23046_test; |
22 }); | 22 }); |
OLD | NEW |