7dc4fbf5a2
Fixes #33083 Bug: https://github.com/dart-lang/sdk/issues/33083 Change-Id: If278ee3c59489944e2e821ae48ba3cb363dbbdd1 Reviewed-on: https://dart-review.googlesource.com/56496 Commit-Queue: Dmitry Stefantsov <dmitryas@google.com> Reviewed-by: Peter von der Ahé <ahe@google.com> Reviewed-by: Dan Rubel <danrubel@google.com>
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
library;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
class Fisk<T extends core::Object = dynamic> extends core::Object {
|
|
final field self::Fisk::T x;
|
|
const constructor fisk(self::Fisk::T x) → void
|
|
: self::Fisk::x = x, super core::Object::•()
|
|
;
|
|
}
|
|
class Foo extends core::Object {
|
|
final field core::int index;
|
|
final field core::String _name;
|
|
static const field core::List<self::Foo> values = const <self::Foo>[self::Foo::bar, self::Foo::baz, self::Foo::cafebabe];
|
|
@self::hest
|
|
static const field self::Foo bar = const self::Foo::•(0, "Foo.bar");
|
|
@self::Fisk::fisk<dynamic>(self::hest)
|
|
static const field self::Foo baz = const self::Foo::•(1, "Foo.baz");
|
|
static const field self::Foo cafebabe = const self::Foo::•(2, "Foo.cafebabe");
|
|
const constructor •(core::int index, core::String _name) → void
|
|
: self::Foo::index = index, self::Foo::_name = _name, super core::Object::•()
|
|
;
|
|
method toString() → core::String
|
|
return this.{=self::Foo::_name};
|
|
}
|
|
static const field core::int hest = 42;
|
|
static method main() → dynamic {}
|