OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/if_null_behavior_test_04_multi', null, /* Imports
*/[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__if_null_behavior_test_04_multi(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 if_null_behavior_test_04_multi = Object.create(null); |
| 11 let VoidToB = () => (VoidToB = dart.constFn(dart.definiteFunctionType(if_null_
behavior_test_04_multi.B, [])))(); |
| 12 let VoidToC = () => (VoidToC = dart.constFn(dart.definiteFunctionType(if_null_
behavior_test_04_multi.C, [])))(); |
| 13 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun
ctionType(dart.dynamic, [dart.dynamic])))(); |
| 14 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 15 if_null_behavior_test_04_multi.A = class A extends core.Object { |
| 16 new(a) { |
| 17 this.a = a; |
| 18 } |
| 19 }; |
| 20 dart.setSignature(if_null_behavior_test_04_multi.A, { |
| 21 constructors: () => ({new: dart.definiteFunctionType(if_null_behavior_test_0
4_multi.A, [core.String])}) |
| 22 }); |
| 23 if_null_behavior_test_04_multi.B = class B extends if_null_behavior_test_04_mu
lti.A { |
| 24 new(v) { |
| 25 this.b = v; |
| 26 super.new(v); |
| 27 } |
| 28 }; |
| 29 dart.setSignature(if_null_behavior_test_04_multi.B, { |
| 30 constructors: () => ({new: dart.definiteFunctionType(if_null_behavior_test_0
4_multi.B, [core.String])}) |
| 31 }); |
| 32 if_null_behavior_test_04_multi.C = class C extends if_null_behavior_test_04_mu
lti.A { |
| 33 new(v) { |
| 34 this.c = v; |
| 35 super.new(v); |
| 36 } |
| 37 }; |
| 38 dart.setSignature(if_null_behavior_test_04_multi.C, { |
| 39 constructors: () => ({new: dart.definiteFunctionType(if_null_behavior_test_0
4_multi.C, [core.String])}) |
| 40 }); |
| 41 if_null_behavior_test_04_multi.nullB = function() { |
| 42 return null; |
| 43 }; |
| 44 dart.fn(if_null_behavior_test_04_multi.nullB, VoidToB()); |
| 45 if_null_behavior_test_04_multi.nullC = function() { |
| 46 return null; |
| 47 }; |
| 48 dart.fn(if_null_behavior_test_04_multi.nullC, VoidToC()); |
| 49 if_null_behavior_test_04_multi.noMethod = function(e) { |
| 50 return core.NoSuchMethodError.is(e); |
| 51 }; |
| 52 dart.fn(if_null_behavior_test_04_multi.noMethod, dynamicTodynamic()); |
| 53 if_null_behavior_test_04_multi.main = function() { |
| 54 let _ = (() => { |
| 55 let l = null; |
| 56 return l != null ? l : null; |
| 57 })(); |
| 58 expect$.Expect.equals(null, (() => { |
| 59 let l = null; |
| 60 return l != null ? l : null; |
| 61 })()); |
| 62 }; |
| 63 dart.fn(if_null_behavior_test_04_multi.main, VoidTodynamic()); |
| 64 // Exports: |
| 65 exports.if_null_behavior_test_04_multi = if_null_behavior_test_04_multi; |
| 66 }); |
OLD | NEW |