Paul Berry | 1cadaf4 | 2017-08-26 08:00:05 -0700 | [diff] [blame] | 1 | library test; |
| 2 | import self as self; |
| 3 | import "dart:core" as core; |
| 4 | |
| 5 | abstract class I1 extends core::Object { |
Dmitry Stefantsov | 20e4c74 | 2019-07-31 08:26:14 +0000 | [diff] [blame] | 6 | synthetic constructor •() → self::I1* |
Paul Berry | 1cadaf4 | 2017-08-26 08:00:05 -0700 | [diff] [blame] | 7 | : super core::Object::•() |
| 8 | ; |
Dmitry Stefantsov | 20e4c74 | 2019-07-31 08:26:14 +0000 | [diff] [blame] | 9 | abstract method f(core::int* i) → void; |
Johnni Winther | de224ac | 2020-08-17 13:41:49 +0000 | [diff] [blame] | 10 | abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode |
| 11 | abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf |
| 12 | abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf |
| 13 | abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue |
| 14 | abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse |
| 15 | abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== |
| 16 | abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode |
| 17 | abstract member-signature method toString() → core::String*; -> core::Object::toString |
| 18 | abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod |
| 19 | abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType |
Paul Berry | 1cadaf4 | 2017-08-26 08:00:05 -0700 | [diff] [blame] | 20 | } |
| 21 | abstract class I2 extends core::Object { |
Dmitry Stefantsov | 20e4c74 | 2019-07-31 08:26:14 +0000 | [diff] [blame] | 22 | synthetic constructor •() → self::I2* |
Paul Berry | 1cadaf4 | 2017-08-26 08:00:05 -0700 | [diff] [blame] | 23 | : super core::Object::•() |
| 24 | ; |
Dmitry Stefantsov | 20e4c74 | 2019-07-31 08:26:14 +0000 | [diff] [blame] | 25 | abstract method f(core::Object* o) → void; |
Johnni Winther | de224ac | 2020-08-17 13:41:49 +0000 | [diff] [blame] | 26 | abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode |
| 27 | abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf |
| 28 | abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf |
| 29 | abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue |
| 30 | abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse |
| 31 | abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== |
| 32 | abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode |
| 33 | abstract member-signature method toString() → core::String*; -> core::Object::toString |
| 34 | abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod |
| 35 | abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType |
Paul Berry | 1cadaf4 | 2017-08-26 08:00:05 -0700 | [diff] [blame] | 36 | } |
| 37 | abstract class C extends core::Object implements self::I1, self::I2 { |
Dmitry Stefantsov | 20e4c74 | 2019-07-31 08:26:14 +0000 | [diff] [blame] | 38 | synthetic constructor •() → self::C* |
Paul Berry | 1cadaf4 | 2017-08-26 08:00:05 -0700 | [diff] [blame] | 39 | : super core::Object::•() |
| 40 | ; |
Dmitry Stefantsov | 20e4c74 | 2019-07-31 08:26:14 +0000 | [diff] [blame] | 41 | abstract forwarding-stub method f(core::Object* o) → void; |
Johnni Winther | de224ac | 2020-08-17 13:41:49 +0000 | [diff] [blame] | 42 | abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode |
| 43 | abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf |
| 44 | abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf |
| 45 | abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue |
| 46 | abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse |
| 47 | abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== |
| 48 | abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode |
| 49 | abstract member-signature method toString() → core::String*; -> core::Object::toString |
| 50 | abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod |
| 51 | abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType |
Paul Berry | 1cadaf4 | 2017-08-26 08:00:05 -0700 | [diff] [blame] | 52 | } |
| 53 | class D extends self::C { |
Dmitry Stefantsov | 20e4c74 | 2019-07-31 08:26:14 +0000 | [diff] [blame] | 54 | synthetic constructor •() → self::D* |
Paul Berry | 1cadaf4 | 2017-08-26 08:00:05 -0700 | [diff] [blame] | 55 | : super self::C::•() |
| 56 | ; |
Dmitry Stefantsov | 20e4c74 | 2019-07-31 08:26:14 +0000 | [diff] [blame] | 57 | method f(core::Object* o) → void {} |
Paul Berry | 1cadaf4 | 2017-08-26 08:00:05 -0700 | [diff] [blame] | 58 | } |
| 59 | abstract class E extends core::Object implements self::I2, self::I1 { |
Dmitry Stefantsov | 20e4c74 | 2019-07-31 08:26:14 +0000 | [diff] [blame] | 60 | synthetic constructor •() → self::E* |
Paul Berry | 1cadaf4 | 2017-08-26 08:00:05 -0700 | [diff] [blame] | 61 | : super core::Object::•() |
| 62 | ; |
Johnni Winther | de224ac | 2020-08-17 13:41:49 +0000 | [diff] [blame] | 63 | abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode |
| 64 | abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf |
| 65 | abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf |
| 66 | abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue |
| 67 | abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse |
| 68 | abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== |
| 69 | abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode |
| 70 | abstract member-signature method toString() → core::String*; -> core::Object::toString |
| 71 | abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod |
| 72 | abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType |
Paul Berry | 1cadaf4 | 2017-08-26 08:00:05 -0700 | [diff] [blame] | 73 | } |
| 74 | class F extends self::E { |
Dmitry Stefantsov | 20e4c74 | 2019-07-31 08:26:14 +0000 | [diff] [blame] | 75 | synthetic constructor •() → self::F* |
Paul Berry | 1cadaf4 | 2017-08-26 08:00:05 -0700 | [diff] [blame] | 76 | : super self::E::•() |
| 77 | ; |
Dmitry Stefantsov | 20e4c74 | 2019-07-31 08:26:14 +0000 | [diff] [blame] | 78 | method f(core::Object* o) → void {} |
Paul Berry | 1cadaf4 | 2017-08-26 08:00:05 -0700 | [diff] [blame] | 79 | } |
Dmitry Stefantsov | 20e4c74 | 2019-07-31 08:26:14 +0000 | [diff] [blame] | 80 | static method g1(self::C* c) → void { |
Paul Berry | 5a6ae28 | 2017-10-25 21:40:28 +0000 | [diff] [blame] | 81 | c.{self::C::f}("hi"); |
Paul Berry | 1cadaf4 | 2017-08-26 08:00:05 -0700 | [diff] [blame] | 82 | } |
Dmitry Stefantsov | 20e4c74 | 2019-07-31 08:26:14 +0000 | [diff] [blame] | 83 | static method g2(self::E* e) → void { |
Paul Berry | 1cadaf4 | 2017-08-26 08:00:05 -0700 | [diff] [blame] | 84 | e.{self::I2::f}("hi"); |
| 85 | } |
| 86 | static method main() → dynamic { |
| 87 | self::g1(new self::D::•()); |
| 88 | self::g2(new self::F::•()); |
| 89 | } |