Files
sdk/pkg/front_end/testcases/prefer_baseclass.dart.direct.expect
T
Jens Johansen c1160d8cfa [kernel] Change ast to text output to use synthetic instead of default
Change-Id: Ied8777df13aa0411daf89f3ad3ec6bdda7bb4898
Reviewed-on: https://dart-review.googlesource.com/35862
Reviewed-by: Kevin Millikin <kmillikin@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2018-01-19 09:58:46 +00:00

43 lines
1.1 KiB
Plaintext

library;
import self as self;
import "dart:core" as core;
class A extends core::Object {
synthetic constructor •() → void
: super core::Object::•()
;
}
class B extends core::Object {
synthetic constructor •() → void
: super core::Object::•()
;
}
class AB1 extends self::A implements self::B {
synthetic constructor •() → void
: super self::A::•()
;
}
class AB2 extends self::A implements self::B {
synthetic constructor •() → void
: super self::A::•()
;
}
class BA1 extends self::B implements self::A {
synthetic constructor •() → void
: super self::B::•()
;
}
class BA2 extends self::B implements self::A {
synthetic constructor •() → void
: super self::B::•()
;
}
static method takeSubclassOfA(dynamic obj) → dynamic {}
static method takeSubclassOfB(dynamic obj) → dynamic {}
static method main() → dynamic {
self::takeSubclassOfA(new self::AB1::•());
self::takeSubclassOfA(new self::AB2::•());
self::takeSubclassOfB(new self::BA1::•());
self::takeSubclassOfB(new self::BA2::•());
}