OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/interface_inherit_field_test', null, /* Imports *
/[ |
| 2 'dart_sdk' |
| 3 ], function load__interface_inherit_field_test(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 interface_inherit_field_test = Object.create(null); |
| 9 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 10 interface_inherit_field_test.IA = class IA extends core.Object { |
| 11 new() { |
| 12 this.foo = null; |
| 13 } |
| 14 }; |
| 15 interface_inherit_field_test.IB = class IB extends core.Object { |
| 16 new() { |
| 17 this.foo = null; |
| 18 } |
| 19 }; |
| 20 interface_inherit_field_test.IB[dart.implements] = () => [interface_inherit_fi
eld_test.IA]; |
| 21 const _f = Symbol('_f'); |
| 22 interface_inherit_field_test.B = class B extends core.Object { |
| 23 new() { |
| 24 this[_f] = 123; |
| 25 } |
| 26 get foo() { |
| 27 return this[_f]; |
| 28 } |
| 29 }; |
| 30 interface_inherit_field_test.B[dart.implements] = () => [interface_inherit_fie
ld_test.IB]; |
| 31 interface_inherit_field_test.main = function() { |
| 32 let b = new interface_inherit_field_test.B(); |
| 33 core.print(dart.str`b.foo = ${b.foo}`); |
| 34 }; |
| 35 dart.fn(interface_inherit_field_test.main, VoidTodynamic()); |
| 36 // Exports: |
| 37 exports.interface_inherit_field_test = interface_inherit_field_test; |
| 38 }); |
OLD | NEW |