Files
sdk/pkg/front_end/testcases/classes.dart.strong.transformed.expect
T
Peter von der Ahé b236db0ff6 Add missing expectation files
Change-Id: Icb1c4ee11aca319647e4e33214fe8b4c3b8134ae
Reviewed-on: https://dart-review.googlesource.com/c/81762
Auto-Submit: Peter von der Ahé <ahe@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Peter von der Ahé <ahe@google.com>
2018-10-29 12:34:42 +00:00

32 lines
878 B
Plaintext

library;
import self as self;
import "dart:core" as core;
class A extends core::Object {
final field core::int x;
final field core::int y;
constructor •(core::int y) → self::A
: self::A::y = y, self::A::x = 42, super core::Object::•()
;
method method() → dynamic {
core::print("A.method x: ${this.{self::A::x}} y: ${this.{self::A::y}}");
core::print(this);
core::print(this.{core::Object::runtimeType});
}
}
class B extends self::A {
constructor •(dynamic x) → self::B
: super self::A::•(x as{TypeError} core::int)
;
method method() → dynamic {
core::print("B.method x: ${this.{self::A::x}} y: ${this.{self::A::y}}");
super.{self::A::method}();
}
}
static method main() → dynamic {
self::A a = new self::A::•(87);
self::B b = new self::B::•(117);
a.{self::A::method}();
b.{self::B::method}();
}