OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/class_literal_test_none_multi', null, /* Imports
*/[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__class_literal_test_none_multi(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 class_literal_test_none_multi = Object.create(null); |
| 11 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun
ctionType(dart.dynamic, [dart.dynamic])))(); |
| 12 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 13 class_literal_test_none_multi.Class = class Class extends core.Object { |
| 14 static fisk() { |
| 15 return 42; |
| 16 } |
| 17 }; |
| 18 dart.setSignature(class_literal_test_none_multi.Class, { |
| 19 statics: () => ({fisk: dart.definiteFunctionType(dart.dynamic, [])}), |
| 20 names: ['fisk'] |
| 21 }); |
| 22 class_literal_test_none_multi.foo = function(x) { |
| 23 }; |
| 24 dart.fn(class_literal_test_none_multi.foo, dynamicTodynamic()); |
| 25 class_literal_test_none_multi.main = function() { |
| 26 expect$.Expect.equals(42, class_literal_test_none_multi.Class.fisk()); |
| 27 expect$.Expect.equals(null, class_literal_test_none_multi.foo(class_literal_
test_none_multi.Class.fisk())); |
| 28 dart.wrapType(class_literal_test_none_multi.Class); |
| 29 let x = dart.wrapType(class_literal_test_none_multi.Class); |
| 30 class_literal_test_none_multi.foo(dart.wrapType(class_literal_test_none_mult
i.Class)); |
| 31 expect$.Expect.isFalse(dart.wrapType(class_literal_test_none_multi.Class) ==
null); |
| 32 expect$.Expect.notEquals(dart.wrapType(class_literal_test_none_multi.Class),
"Class"); |
| 33 expect$.Expect.isTrue(typeof dart.wrapType(class_literal_test_none_multi.Cla
ss).toString() == 'string'); |
| 34 let y = dart.wrapType(class_literal_test_none_multi.Class); |
| 35 expect$.Expect.isTrue(typeof y.toString() == 'string'); |
| 36 }; |
| 37 dart.fn(class_literal_test_none_multi.main, VoidTodynamic()); |
| 38 // Exports: |
| 39 exports.class_literal_test_none_multi = class_literal_test_none_multi; |
| 40 }); |
OLD | NEW |