blob: 5c0a1c4e70ebfe3c6f5910f7cca77f1ef47e58c3 [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 = const <self::T>[self::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
;