OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/map_literal7_test', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__map_literal7_test(exports, dart_sdk, expect) { |
| 5 'use strict'; |
| 6 const core = dart_sdk.core; |
| 7 const dart = dart_sdk.dart; |
| 8 const dartx = dart_sdk.dartx; |
| 9 const expect$ = expect.expect; |
| 10 const map_literal7_test = Object.create(null); |
| 11 let MapOfString$int = () => (MapOfString$int = dart.constFn(core.Map$(core.Str
ing, core.int)))(); |
| 12 let MapOfint$dynamic = () => (MapOfint$dynamic = dart.constFn(core.Map$(core.i
nt, dart.dynamic)))(); |
| 13 let MapOfdynamic$String = () => (MapOfdynamic$String = dart.constFn(core.Map$(
dart.dynamic, core.String)))(); |
| 14 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da
rt.void, [])))(); |
| 15 let const$; |
| 16 let const$0; |
| 17 map_literal7_test.main = function() { |
| 18 let m1 = const$ || (const$ = dart.const(dart.map({"0": 0, "1": 1}))); |
| 19 expect$.Expect.isTrue(core.Map.is(m1)); |
| 20 expect$.Expect.isTrue(MapOfString$int().is(m1)); |
| 21 expect$.Expect.isTrue(MapOfint$dynamic().is(m1)); |
| 22 expect$.Expect.isTrue(MapOfdynamic$String().is(m1)); |
| 23 let m2 = const$0 || (const$0 = dart.const(dart.map({"0": 0, "1": 1}, core.St
ring, core.int))); |
| 24 expect$.Expect.isTrue(core.Map.is(m2)); |
| 25 expect$.Expect.isTrue(MapOfString$int().is(m2)); |
| 26 expect$.Expect.isFalse(MapOfint$dynamic().is(m2)); |
| 27 expect$.Expect.isFalse(MapOfdynamic$String().is(m2)); |
| 28 }; |
| 29 dart.fn(map_literal7_test.main, VoidTovoid()); |
| 30 // Exports: |
| 31 exports.map_literal7_test = map_literal7_test; |
| 32 }); |
OLD | NEW |