OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/resolve_test', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__resolve_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 resolve_test = Object.create(null); |
| 11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 12 resolve_test.A = class A extends core.Object { |
| 13 static staticCall() { |
| 14 return 4; |
| 15 } |
| 16 dynamicCall() { |
| 17 return 5; |
| 18 } |
| 19 ovrDynamicCall() { |
| 20 return 6; |
| 21 } |
| 22 }; |
| 23 dart.setSignature(resolve_test.A, { |
| 24 methods: () => ({ |
| 25 dynamicCall: dart.definiteFunctionType(dart.dynamic, []), |
| 26 ovrDynamicCall: dart.definiteFunctionType(dart.dynamic, []) |
| 27 }), |
| 28 statics: () => ({staticCall: dart.definiteFunctionType(dart.dynamic, [])}), |
| 29 names: ['staticCall'] |
| 30 }); |
| 31 resolve_test.B = class B extends resolve_test.A { |
| 32 ovrDynamicCall() { |
| 33 return -6; |
| 34 } |
| 35 }; |
| 36 resolve_test.ResolveTest = class ResolveTest extends core.Object { |
| 37 static testMain() { |
| 38 let b = new resolve_test.B(); |
| 39 expect$.Expect.equals(3, dart.dsend(dart.dsend(b.dynamicCall(), '+', resol
ve_test.A.staticCall()), '+', b.ovrDynamicCall())); |
| 40 } |
| 41 }; |
| 42 dart.setSignature(resolve_test.ResolveTest, { |
| 43 statics: () => ({testMain: dart.definiteFunctionType(dart.dynamic, [])}), |
| 44 names: ['testMain'] |
| 45 }); |
| 46 resolve_test.main = function() { |
| 47 resolve_test.ResolveTest.testMain(); |
| 48 }; |
| 49 dart.fn(resolve_test.main, VoidTodynamic()); |
| 50 // Exports: |
| 51 exports.resolve_test = resolve_test; |
| 52 }); |
OLD | NEW |