OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/constructor11_test', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__constructor11_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 constructor11_test = Object.create(null); |
| 11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 12 constructor11_test.A = class A extends core.Object { |
| 13 new(x) { |
| 14 if (x === void 0) x = 499; |
| 15 this.x = x; |
| 16 } |
| 17 }; |
| 18 dart.setSignature(constructor11_test.A, { |
| 19 constructors: () => ({new: dart.definiteFunctionType(constructor11_test.A, [
], [dart.dynamic])}) |
| 20 }); |
| 21 constructor11_test.B = class B extends constructor11_test.A { |
| 22 new() { |
| 23 super.new(); |
| 24 } |
| 25 }; |
| 26 constructor11_test.X = class X extends core.Object { |
| 27 new(x) { |
| 28 if (x === void 0) x = 42; |
| 29 this.x = x; |
| 30 } |
| 31 }; |
| 32 dart.setSignature(constructor11_test.X, { |
| 33 constructors: () => ({new: dart.definiteFunctionType(constructor11_test.X, [
], [dart.dynamic])}) |
| 34 }); |
| 35 constructor11_test.Y = class Y extends constructor11_test.X { |
| 36 new() { |
| 37 super.new(); |
| 38 } |
| 39 }; |
| 40 constructor11_test.Z = class Z extends constructor11_test.Y { |
| 41 new() { |
| 42 } |
| 43 }; |
| 44 dart.setSignature(constructor11_test.Z, { |
| 45 constructors: () => ({new: dart.definiteFunctionType(constructor11_test.Z, [
])}) |
| 46 }); |
| 47 constructor11_test.F = class F extends core.Object { |
| 48 new(x) { |
| 49 if (x === void 0) x = 99; |
| 50 this.x = x; |
| 51 } |
| 52 }; |
| 53 dart.setSignature(constructor11_test.F, { |
| 54 constructors: () => ({new: dart.definiteFunctionType(constructor11_test.F, [
], [dart.dynamic])}) |
| 55 }); |
| 56 constructor11_test.G = class G extends constructor11_test.F { |
| 57 new() { |
| 58 super.new(); |
| 59 } |
| 60 }; |
| 61 constructor11_test.H = class H extends constructor11_test.G {}; |
| 62 constructor11_test.main = function() { |
| 63 expect$.Expect.equals(499, new constructor11_test.B().x); |
| 64 expect$.Expect.equals(42, new constructor11_test.Z().x); |
| 65 expect$.Expect.equals(99, new constructor11_test.H().x); |
| 66 }; |
| 67 dart.fn(constructor11_test.main, VoidTodynamic()); |
| 68 // Exports: |
| 69 exports.constructor11_test = constructor11_test; |
| 70 }); |
OLD | NEW |