OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/mixin_super_constructor_multiple_test', null, /*
Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__mixin_super_constructor_multiple_test(exports, dart_sdk, expec
t) { |
| 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 mixin_super_constructor_multiple_test = Object.create(null); |
| 11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 12 mixin_super_constructor_multiple_test.S = class S extends core.Object { |
| 13 foo() { |
| 14 this.i = 1742; |
| 15 } |
| 16 }; |
| 17 dart.defineNamedConstructor(mixin_super_constructor_multiple_test.S, 'foo'); |
| 18 dart.setSignature(mixin_super_constructor_multiple_test.S, { |
| 19 constructors: () => ({foo: dart.definiteFunctionType(mixin_super_constructor
_multiple_test.S, [])}) |
| 20 }); |
| 21 mixin_super_constructor_multiple_test.M1 = class M1 extends core.Object {}; |
| 22 mixin_super_constructor_multiple_test.M2 = class M2 extends core.Object {}; |
| 23 mixin_super_constructor_multiple_test.C = class C extends dart.mixin(mixin_sup
er_constructor_multiple_test.S, mixin_super_constructor_multiple_test.M1, mixin_
super_constructor_multiple_test.M2) { |
| 24 foo() { |
| 25 super.foo(); |
| 26 } |
| 27 }; |
| 28 dart.defineNamedConstructor(mixin_super_constructor_multiple_test.C, 'foo'); |
| 29 dart.setSignature(mixin_super_constructor_multiple_test.C, { |
| 30 constructors: () => ({foo: dart.definiteFunctionType(mixin_super_constructor
_multiple_test.C, [])}) |
| 31 }); |
| 32 mixin_super_constructor_multiple_test.main = function() { |
| 33 expect$.Expect.equals(1742, new mixin_super_constructor_multiple_test.C.foo(
).i); |
| 34 }; |
| 35 dart.fn(mixin_super_constructor_multiple_test.main, VoidTodynamic()); |
| 36 // Exports: |
| 37 exports.mixin_super_constructor_multiple_test = mixin_super_constructor_multip
le_test; |
| 38 }); |
OLD | NEW |