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>
18 lines
683 B
Plaintext
18 lines
683 B
Plaintext
library;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
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::ec1, self::Foo::ec2];
|
|
static const field self::Foo ec1 = const self::Foo::•(0, "Foo.ec1");
|
|
static const field self::Foo ec2 = const self::Foo::•(1, "Foo.ec2");
|
|
const constructor •(core::int index, core::String _name) → self::Foo
|
|
: self::Foo::index = index, self::Foo::_name = _name, super core::Object::•()
|
|
;
|
|
method toString() → core::String
|
|
return this.{=self::Foo::_name};
|
|
}
|
|
static method main() → dynamic {}
|