874710bdf3
Change-Id: I5c87f431bae49471908a96fbbfe8b1f4d3098c6b Reviewed-on: https://dart-review.googlesource.com/c/81822 Commit-Queue: Peter von der Ahé <ahe@google.com> Auto-Submit: Peter von der Ahé <ahe@google.com> Reviewed-by: Jens Johansen <jensj@google.com>
28 lines
663 B
Plaintext
28 lines
663 B
Plaintext
library;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
class Foo extends core::Object {
|
|
field self::Bar _field = new self::Bar::•();
|
|
synthetic constructor •() → self::Foo
|
|
: super core::Object::•()
|
|
;
|
|
}
|
|
class Bar extends core::Object {
|
|
synthetic constructor •() → self::Bar
|
|
: super core::Object::•()
|
|
;
|
|
}
|
|
static method useCallback(dynamic callback) → dynamic {
|
|
dynamic _ = callback.call();
|
|
}
|
|
static method main() → dynamic {
|
|
dynamic x;
|
|
function inner() → self::Foo {
|
|
x = new self::Foo::•();
|
|
return new self::Foo::•();
|
|
}
|
|
self::useCallback(inner);
|
|
self::Bar _ = inner.call().{self::Foo::_field};
|
|
}
|