OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/mixin_override_regression_test', null, /* Imports
*/[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__mixin_override_regression_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 mixin_override_regression_test = Object.create(null); |
| 11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 12 mixin_override_regression_test.C0 = class C0 extends core.Object { |
| 13 m1() { |
| 14 return 5; |
| 15 } |
| 16 m2() { |
| 17 return this.m1(); |
| 18 } |
| 19 }; |
| 20 dart.setSignature(mixin_override_regression_test.C0, { |
| 21 methods: () => ({ |
| 22 m1: dart.definiteFunctionType(core.int, []), |
| 23 m2: dart.definiteFunctionType(core.int, []) |
| 24 }) |
| 25 }); |
| 26 mixin_override_regression_test.C1 = class C1 extends dart.mixin(core.Object, m
ixin_override_regression_test.C0) {}; |
| 27 mixin_override_regression_test.D = class D extends core.Object { |
| 28 m1() { |
| 29 return 7; |
| 30 } |
| 31 }; |
| 32 dart.setSignature(mixin_override_regression_test.D, { |
| 33 methods: () => ({m1: dart.definiteFunctionType(core.int, [])}) |
| 34 }); |
| 35 mixin_override_regression_test.E0 = class E0 extends dart.mixin(mixin_override
_regression_test.C0, mixin_override_regression_test.D) {}; |
| 36 mixin_override_regression_test.E1 = class E1 extends dart.mixin(mixin_override
_regression_test.C1, mixin_override_regression_test.D) {}; |
| 37 mixin_override_regression_test.main = function() { |
| 38 expect$.Expect.equals(7, new mixin_override_regression_test.E0().m2()); |
| 39 expect$.Expect.equals(7, new mixin_override_regression_test.E1().m2()); |
| 40 }; |
| 41 dart.fn(mixin_override_regression_test.main, VoidTodynamic()); |
| 42 // Exports: |
| 43 exports.mixin_override_regression_test = mixin_override_regression_test; |
| 44 }); |
OLD | NEW |