| library /*isNonNullableByDefault*/; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/general/issue48487b.dart:9:3: Error: This requires the 'enhanced-enums' language feature to be enabled. |
| // Try updating your pubspec.yaml to set the minimum SDK constraint to 2.17 or higher, and running 'pub get'. |
| // const T.named(); |
| // ^ |
| // |
| 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 {} |