blob: adeab816eb0047e5366047cefc75b5f441493aca [file] [log] [blame]
library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/general/issue48487b.dart:9:3: Error: The 'enhanced-enums' language feature is disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to 2.17 or higher.
// const T.named();
// ^
// pkg/front_end/testcases/general/issue48487b.dart:5:1: Context: This is the annotation that opts out this library from the 'enhanced-enums' language feature.
// // @dart=2.16
// ^^^^^^^^^^^^^
//
import self as self;
import "dart:core" as core;
class T extends core::_Enum /*isEnum*/ {
static const field core::List<self::T> values = invalid-expression "pkg/front_end/testcases/general/issue48487b.dart:8:3: Error: Couldn't find constructor 'T'.
t;
^";
static const field self::T t = invalid-expression "pkg/front_end/testcases/general/issue48487b.dart:8:3: Error: Couldn't find constructor 'T'.
t;
^";
const constructor named(core::int #index, core::String #name) → self::T
: super core::_Enum::•(#index, #name)
;
method toString() core::String
return "T.${this.{core::_Enum::_name}{core::String}}";
}
static method main() void {}