blob: 827292ae4e5a91698b19977cf5c296aef945386f [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/regress/enum_multiple_empty_elements.dart:7:8: Error: Expected an identifier, but got ','.
// Try inserting an identifier before ','.
// /*a*/,
// ^
//
// pkg/front_end/testcases/regress/enum_multiple_empty_elements.dart:8:8: Error: Expected an identifier, but got ','.
// Try inserting an identifier before ','.
// /*b*/,
// ^
//
// pkg/front_end/testcases/regress/enum_multiple_empty_elements.dart:5:6: Error: An enum declaration can't be empty.
// enum Foo {
// ^^^
//
import self as self;
import "dart:core" as core;
class Foo extends core::_Enum /*isEnum*/ {
static const field core::List<self::Foo> values = #C1;
const synthetic constructor •(core::int #index, core::String #name) → self::Foo
: super core::_Enum::•(#index, #name)
;
method _enumToString() core::String
return "Foo.${this.{core::_Enum::_name}{core::String}}";
}
constants {
#C1 = <self::Foo>[]
}