OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/least_upper_bound_test_02_multi', null, /* Import
s */[ |
| 2 'dart_sdk' |
| 3 ], function load__least_upper_bound_test_02_multi(exports, dart_sdk) { |
| 4 'use strict'; |
| 5 const core = dart_sdk.core; |
| 6 const dart = dart_sdk.dart; |
| 7 const dartx = dart_sdk.dartx; |
| 8 const least_upper_bound_test_02_multi = Object.create(null); |
| 9 let E = () => (E = dart.constFn(least_upper_bound_test_02_multi.E$()))(); |
| 10 let F = () => (F = dart.constFn(least_upper_bound_test_02_multi.F$()))(); |
| 11 let FOfC = () => (FOfC = dart.constFn(least_upper_bound_test_02_multi.F$(least
_upper_bound_test_02_multi.C)))(); |
| 12 let EOfB = () => (EOfB = dart.constFn(least_upper_bound_test_02_multi.E$(least
_upper_bound_test_02_multi.B)))(); |
| 13 let EOfC = () => (EOfC = dart.constFn(least_upper_bound_test_02_multi.E$(least
_upper_bound_test_02_multi.C)))(); |
| 14 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da
rt.void, [])))(); |
| 15 let AAndBTovoid = () => (AAndBTovoid = dart.constFn(dart.definiteFunctionType(
dart.void, [least_upper_bound_test_02_multi.A, least_upper_bound_test_02_multi.B
])))(); |
| 16 let BAndCTovoid = () => (BAndCTovoid = dart.constFn(dart.definiteFunctionType(
dart.void, [least_upper_bound_test_02_multi.B, least_upper_bound_test_02_multi.C
])))(); |
| 17 let CAndDTovoid = () => (CAndDTovoid = dart.constFn(dart.definiteFunctionType(
dart.void, [least_upper_bound_test_02_multi.C, least_upper_bound_test_02_multi.D
])))(); |
| 18 let EOfBAndEOfCTovoid = () => (EOfBAndEOfCTovoid = dart.constFn(dart.definiteF
unctionType(dart.void, [EOfB(), EOfC()])))(); |
| 19 let EOfBAndFOfCTovoid = () => (EOfBAndFOfCTovoid = dart.constFn(dart.definiteF
unctionType(dart.void, [EOfB(), FOfC()])))(); |
| 20 least_upper_bound_test_02_multi.A = class A extends core.Object { |
| 21 new() { |
| 22 this.a = null; |
| 23 } |
| 24 }; |
| 25 least_upper_bound_test_02_multi.B = class B extends core.Object { |
| 26 new() { |
| 27 this.b = null; |
| 28 } |
| 29 }; |
| 30 least_upper_bound_test_02_multi.C = class C extends least_upper_bound_test_02_
multi.B { |
| 31 new() { |
| 32 this.c = null; |
| 33 super.new(); |
| 34 } |
| 35 }; |
| 36 least_upper_bound_test_02_multi.D = class D extends least_upper_bound_test_02_
multi.B { |
| 37 new() { |
| 38 this.d = null; |
| 39 super.new(); |
| 40 } |
| 41 }; |
| 42 least_upper_bound_test_02_multi.E$ = dart.generic(T => { |
| 43 class E extends core.Object { |
| 44 new(e) { |
| 45 this.e = e; |
| 46 } |
| 47 } |
| 48 dart.addTypeTests(E); |
| 49 dart.setSignature(E, { |
| 50 constructors: () => ({new: dart.definiteFunctionType(least_upper_bound_tes
t_02_multi.E$(T), [T])}) |
| 51 }); |
| 52 return E; |
| 53 }); |
| 54 least_upper_bound_test_02_multi.E = E(); |
| 55 least_upper_bound_test_02_multi.F$ = dart.generic(T => { |
| 56 class F extends least_upper_bound_test_02_multi.E$(T) { |
| 57 new(f) { |
| 58 this.f = f; |
| 59 super.new(f); |
| 60 } |
| 61 } |
| 62 dart.setSignature(F, { |
| 63 constructors: () => ({new: dart.definiteFunctionType(least_upper_bound_tes
t_02_multi.F$(T), [T])}) |
| 64 }); |
| 65 return F; |
| 66 }); |
| 67 least_upper_bound_test_02_multi.F = F(); |
| 68 least_upper_bound_test_02_multi.main = function() { |
| 69 least_upper_bound_test_02_multi.testAB(new least_upper_bound_test_02_multi.A
(), new least_upper_bound_test_02_multi.B()); |
| 70 least_upper_bound_test_02_multi.testBC(new least_upper_bound_test_02_multi.C
(), new least_upper_bound_test_02_multi.C()); |
| 71 least_upper_bound_test_02_multi.testCD(new least_upper_bound_test_02_multi.C
(), new least_upper_bound_test_02_multi.D()); |
| 72 least_upper_bound_test_02_multi.testEE(new (FOfC())(new least_upper_bound_te
st_02_multi.C()), new (FOfC())(new least_upper_bound_test_02_multi.C())); |
| 73 least_upper_bound_test_02_multi.testEF(new (FOfC())(new least_upper_bound_te
st_02_multi.C()), new (FOfC())(new least_upper_bound_test_02_multi.C())); |
| 74 }; |
| 75 dart.fn(least_upper_bound_test_02_multi.main, VoidTovoid()); |
| 76 least_upper_bound_test_02_multi.testAB = function(a, b) { |
| 77 let r2 = least_upper_bound_test_02_multi.B._check(false ? a : b); |
| 78 let c = new least_upper_bound_test_02_multi.C(); |
| 79 }; |
| 80 dart.fn(least_upper_bound_test_02_multi.testAB, AAndBTovoid()); |
| 81 least_upper_bound_test_02_multi.testBC = function(b, c) { |
| 82 let a = null; |
| 83 }; |
| 84 dart.fn(least_upper_bound_test_02_multi.testBC, BAndCTovoid()); |
| 85 least_upper_bound_test_02_multi.testCD = function(c, d) { |
| 86 }; |
| 87 dart.fn(least_upper_bound_test_02_multi.testCD, CAndDTovoid()); |
| 88 least_upper_bound_test_02_multi.testEE = function(e, f) { |
| 89 try { |
| 90 } catch (e) { |
| 91 } |
| 92 |
| 93 }; |
| 94 dart.fn(least_upper_bound_test_02_multi.testEE, EOfBAndEOfCTovoid()); |
| 95 least_upper_bound_test_02_multi.testEF = function(e, f) { |
| 96 try { |
| 97 } catch (e) { |
| 98 } |
| 99 |
| 100 let r5 = null; |
| 101 }; |
| 102 dart.fn(least_upper_bound_test_02_multi.testEF, EOfBAndFOfCTovoid()); |
| 103 // Exports: |
| 104 exports.least_upper_bound_test_02_multi = least_upper_bound_test_02_multi; |
| 105 }); |
OLD | NEW |