4b7d256a06
This reverts commite9ca6a5335andd3e00fd35e. Change-Id: I346d6156be19c4fceffa202a7ce9bfa931c7c14b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99560 Reviewed-by: Sigmund Cherem <sigmund@google.com> Reviewed-by: Vijay Menon <vsm@google.com> Reviewed-by: Siva Annamalai <asiva@google.com>
38 lines
962 B
Plaintext
38 lines
962 B
Plaintext
library;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
abstract class Base extends core::Object {
|
|
synthetic constructor •() → self::Base
|
|
: super core::Object::•()
|
|
;
|
|
}
|
|
class Foo extends self::Base {
|
|
synthetic constructor •() → self::Foo
|
|
: super self::Base::•()
|
|
;
|
|
}
|
|
class Bar extends self::Base {
|
|
synthetic constructor •() → self::Bar
|
|
: super self::Base::•()
|
|
;
|
|
}
|
|
class Baz extends self::Base {
|
|
synthetic constructor •() → self::Baz
|
|
: super self::Base::•()
|
|
;
|
|
}
|
|
static method foo(dynamic x) → void {}
|
|
static method bar(dynamic x) → void {}
|
|
static method foo_escaped(dynamic x) → void {}
|
|
static method bar_escaped(dynamic x) → void {}
|
|
static method escape(dynamic fn) → void {
|
|
fn.call(new self::Baz::•());
|
|
}
|
|
static method main() → dynamic {
|
|
self::foo(new self::Foo::•());
|
|
self::bar(new self::Bar::•());
|
|
self::escape(self::foo_escaped);
|
|
self::escape(self::bar_escaped);
|
|
}
|