| library /*isNonNullableByDefault*/; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/general/issue48487.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. |
| // void test() { |
| // ^ |
| // pkg/front_end/testcases/general/issue48487.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 = const self::T::•(0, "t"); |
| const constructor •(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}}"; |
| method test() → void |
| ; |
| } |
| static method main() → void |
| ; |
| |
| |
| Extra constant evaluation status: |
| Evaluated: ListLiteral @ org-dartlang-testcase:///issue48487.dart:7:6 -> ListConstant(const <T*>[const T{_Enum.index: 0, _Enum._name: "t"}]) |
| Evaluated: ConstructorInvocation @ org-dartlang-testcase:///issue48487.dart:8:3 -> InstanceConstant(const T{_Enum.index: 0, _Enum._name: "t"}) |
| Extra constant evaluation: evaluated: 7, effectively constant: 2 |