OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/mixin_mixin3_test', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__mixin_mixin3_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_mixin3_test = Object.create(null); |
| 11 let M = () => (M = dart.constFn(mixin_mixin3_test.M$()))(); |
| 12 let A = () => (A = dart.constFn(mixin_mixin3_test.A$()))(); |
| 13 let A2 = () => (A2 = dart.constFn(mixin_mixin3_test.A2$()))(); |
| 14 let B2 = () => (B2 = dart.constFn(mixin_mixin3_test.B2$()))(); |
| 15 let B3 = () => (B3 = dart.constFn(mixin_mixin3_test.B3$()))(); |
| 16 let C2 = () => (C2 = dart.constFn(mixin_mixin3_test.C2$()))(); |
| 17 let C3 = () => (C3 = dart.constFn(mixin_mixin3_test.C3$()))(); |
| 18 let O = () => (O = dart.constFn(mixin_mixin3_test.O$()))(); |
| 19 let P = () => (P = dart.constFn(mixin_mixin3_test.P$()))(); |
| 20 let Q = () => (Q = dart.constFn(mixin_mixin3_test.Q$()))(); |
| 21 let C2Ofbool = () => (C2Ofbool = dart.constFn(mixin_mixin3_test.C2$(core.bool)
))(); |
| 22 let C3Ofbool = () => (C3Ofbool = dart.constFn(mixin_mixin3_test.C3$(core.bool)
))(); |
| 23 let QOfbool$int = () => (QOfbool$int = dart.constFn(mixin_mixin3_test.Q$(core.
bool, core.int)))(); |
| 24 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 25 mixin_mixin3_test.M$ = dart.generic(T => { |
| 26 class M extends core.Object { |
| 27 t() { |
| 28 return dart.wrapType(T); |
| 29 } |
| 30 } |
| 31 dart.addTypeTests(M); |
| 32 dart.setSignature(M, { |
| 33 methods: () => ({t: dart.definiteFunctionType(dart.dynamic, [])}) |
| 34 }); |
| 35 return M; |
| 36 }); |
| 37 mixin_mixin3_test.M = M(); |
| 38 mixin_mixin3_test.A$ = dart.generic(U => { |
| 39 class A extends dart.mixin(core.Object, mixin_mixin3_test.M$(core.List$(U)))
{} |
| 40 return A; |
| 41 }); |
| 42 mixin_mixin3_test.A = A(); |
| 43 mixin_mixin3_test.B0 = class B0 extends dart.mixin(core.Object, mixin_mixin3_t
est.A$(core.Set$(core.bool))) {}; |
| 44 mixin_mixin3_test.B1 = class B1 extends dart.mixin(core.Object, mixin_mixin3_t
est.A$(core.Set$(core.int))) {}; |
| 45 mixin_mixin3_test.C0 = class C0 extends mixin_mixin3_test.B0 {}; |
| 46 mixin_mixin3_test.C1 = class C1 extends mixin_mixin3_test.B1 {}; |
| 47 mixin_mixin3_test.A2$ = dart.generic((K, V) => { |
| 48 class A2 extends dart.mixin(core.Object, mixin_mixin3_test.M$(core.Map$(K, V
))) {} |
| 49 return A2; |
| 50 }); |
| 51 mixin_mixin3_test.A2 = A2(); |
| 52 mixin_mixin3_test.B2$ = dart.generic(V => { |
| 53 class B2 extends dart.mixin(core.Object, mixin_mixin3_test.A2$(core.Set$(V),
core.List$(V))) {} |
| 54 return B2; |
| 55 }); |
| 56 mixin_mixin3_test.B2 = B2(); |
| 57 mixin_mixin3_test.B3$ = dart.generic((K, V) => { |
| 58 class B3 extends dart.mixin(core.Object, mixin_mixin3_test.A2$(core.Set$(K),
core.List$(V))) {} |
| 59 return B3; |
| 60 }); |
| 61 mixin_mixin3_test.B3 = B3(); |
| 62 mixin_mixin3_test.C2$ = dart.generic(T => { |
| 63 class C2 extends mixin_mixin3_test.B2$(T) {} |
| 64 return C2; |
| 65 }); |
| 66 mixin_mixin3_test.C2 = C2(); |
| 67 mixin_mixin3_test.C3$ = dart.generic(T => { |
| 68 class C3 extends mixin_mixin3_test.B3$(T, core.int) {} |
| 69 return C3; |
| 70 }); |
| 71 mixin_mixin3_test.C3 = C3(); |
| 72 mixin_mixin3_test.N = class N extends core.Object { |
| 73 q() { |
| 74 return 42; |
| 75 } |
| 76 }; |
| 77 dart.setSignature(mixin_mixin3_test.N, { |
| 78 methods: () => ({q: dart.definiteFunctionType(dart.dynamic, [])}) |
| 79 }); |
| 80 mixin_mixin3_test.O$ = dart.generic(U => { |
| 81 class O extends dart.mixin(core.Object, mixin_mixin3_test.N) {} |
| 82 return O; |
| 83 }); |
| 84 mixin_mixin3_test.O = O(); |
| 85 mixin_mixin3_test.P$ = dart.generic((K, V) => { |
| 86 class P extends dart.mixin(core.Object, mixin_mixin3_test.O$(V)) {} |
| 87 return P; |
| 88 }); |
| 89 mixin_mixin3_test.P = P(); |
| 90 mixin_mixin3_test.Q$ = dart.generic((K, V) => { |
| 91 class Q extends mixin_mixin3_test.P$(K, V) {} |
| 92 return Q; |
| 93 }); |
| 94 mixin_mixin3_test.Q = Q(); |
| 95 mixin_mixin3_test.main = function() { |
| 96 expect$.Expect.equals("List<Set<bool>>", dart.toString(new mixin_mixin3_test
.C0().t())); |
| 97 expect$.Expect.equals("List<Set<int>>", dart.toString(new mixin_mixin3_test.
C1().t())); |
| 98 expect$.Expect.equals("Map<Set<bool>, List<bool>>", dart.toString(new (C2Ofb
ool())().t())); |
| 99 expect$.Expect.equals("Map<Set<bool>, List<int>>", dart.toString(new (C3Ofbo
ol())().t())); |
| 100 expect$.Expect.equals(42, new (QOfbool$int())().q()); |
| 101 }; |
| 102 dart.fn(mixin_mixin3_test.main, VoidTodynamic()); |
| 103 // Exports: |
| 104 exports.mixin_mixin3_test = mixin_mixin3_test; |
| 105 }); |
OLD | NEW |