OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/mixin_mixin7_test', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__mixin_mixin7_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_mixin7_test = Object.create(null); |
| 11 let I = () => (I = dart.constFn(mixin_mixin7_test.I$()))(); |
| 12 let J = () => (J = dart.constFn(mixin_mixin7_test.J$()))(); |
| 13 let K = () => (K = dart.constFn(mixin_mixin7_test.K$()))(); |
| 14 let S = () => (S = dart.constFn(mixin_mixin7_test.S$()))(); |
| 15 let M = () => (M = dart.constFn(mixin_mixin7_test.M$()))(); |
| 16 let A = () => (A = dart.constFn(mixin_mixin7_test.A$()))(); |
| 17 let B = () => (B = dart.constFn(mixin_mixin7_test.B$()))(); |
| 18 let C = () => (C = dart.constFn(mixin_mixin7_test.C$()))(); |
| 19 let COfint = () => (COfint = dart.constFn(mixin_mixin7_test.C$(core.int)))(); |
| 20 let KOfint = () => (KOfint = dart.constFn(mixin_mixin7_test.K$(core.int)))(); |
| 21 let ListOfint = () => (ListOfint = dart.constFn(core.List$(core.int)))(); |
| 22 let SOfListOfint = () => (SOfListOfint = dart.constFn(mixin_mixin7_test.S$(Lis
tOfint())))(); |
| 23 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 24 mixin_mixin7_test.I$ = dart.generic(T => { |
| 25 class I extends core.Object {} |
| 26 dart.addTypeTests(I); |
| 27 return I; |
| 28 }); |
| 29 mixin_mixin7_test.I = I(); |
| 30 mixin_mixin7_test.J$ = dart.generic(T => { |
| 31 class J extends core.Object {} |
| 32 dart.addTypeTests(J); |
| 33 return J; |
| 34 }); |
| 35 mixin_mixin7_test.J = J(); |
| 36 mixin_mixin7_test.K$ = dart.generic(T => { |
| 37 class K extends core.Object {} |
| 38 dart.addTypeTests(K); |
| 39 return K; |
| 40 }); |
| 41 mixin_mixin7_test.K = K(); |
| 42 mixin_mixin7_test.S$ = dart.generic(T => { |
| 43 class S extends core.Object {} |
| 44 dart.addTypeTests(S); |
| 45 return S; |
| 46 }); |
| 47 mixin_mixin7_test.S = S(); |
| 48 mixin_mixin7_test.M$ = dart.generic(T => { |
| 49 class M extends core.Object { |
| 50 m() { |
| 51 return dart.wrapType(T); |
| 52 } |
| 53 } |
| 54 dart.addTypeTests(M); |
| 55 dart.setSignature(M, { |
| 56 methods: () => ({m: dart.definiteFunctionType(dart.dynamic, [])}) |
| 57 }); |
| 58 return M; |
| 59 }); |
| 60 mixin_mixin7_test.M = M(); |
| 61 mixin_mixin7_test.A$ = dart.generic((U, V) => { |
| 62 class A extends dart.mixin(core.Object, mixin_mixin7_test.M) {} |
| 63 return A; |
| 64 }); |
| 65 mixin_mixin7_test.A = A(); |
| 66 mixin_mixin7_test.B$ = dart.generic(T => { |
| 67 class B extends dart.mixin(core.Object, mixin_mixin7_test.A) {} |
| 68 return B; |
| 69 }); |
| 70 mixin_mixin7_test.B = B(); |
| 71 mixin_mixin7_test.C$ = dart.generic(T => { |
| 72 class C extends dart.mixin(mixin_mixin7_test.S$(core.List$(T)), mixin_mixin7
_test.B) { |
| 73 new() { |
| 74 super.new(); |
| 75 } |
| 76 } |
| 77 return C; |
| 78 }); |
| 79 mixin_mixin7_test.C = C(); |
| 80 mixin_mixin7_test.main = function() { |
| 81 let c = new (COfint())(); |
| 82 expect$.Expect.equals("dynamic", dart.toString(c.m())); |
| 83 expect$.Expect.isTrue(KOfint().is(c)); |
| 84 expect$.Expect.isTrue(mixin_mixin7_test.J.is(c)); |
| 85 expect$.Expect.isTrue(mixin_mixin7_test.I.is(c)); |
| 86 expect$.Expect.isTrue(SOfListOfint().is(c)); |
| 87 expect$.Expect.isTrue(mixin_mixin7_test.A.is(c)); |
| 88 expect$.Expect.isTrue(mixin_mixin7_test.M.is(c)); |
| 89 }; |
| 90 dart.fn(mixin_mixin7_test.main, VoidTodynamic()); |
| 91 // Exports: |
| 92 exports.mixin_mixin7_test = mixin_mixin7_test; |
| 93 }); |
OLD | NEW |