| library /*isNonNullableByDefault*/; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/enhanced_enums/entries_with_type_arguments.dart:11:9: Error: The superclass, '_Enum', has no unnamed constructor that takes no arguments. |
| // const E.named(int value); |
| // ^^^^^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| class E extends core::_Enum /*isEnum*/ { |
| static const field core::List<self::E> values = #C10; |
| static const field self::E one = #C3; |
| static const field self::E two = #C6; |
| static const field self::E three = #C9; |
| const constructor •(core::int index, core::String name) → self::E |
| : super core::_Enum::•(index, name) |
| ; |
| const constructor named(core::int value) → self::E |
| : final dynamic #t1 = invalid-expression "pkg/front_end/testcases/enhanced_enums/entries_with_type_arguments.dart:11:9: Error: The superclass, '_Enum', has no unnamed constructor that takes no arguments. |
| const E.named(int value); |
| ^^^^^" |
| ; |
| method toString() → core::String |
| return "E.${this.{core::_Enum::_name}{core::String}}"; |
| } |
| static method main() → dynamic {} |
| |
| constants { |
| #C1 = 0 |
| #C2 = "one" |
| #C3 = self::E {index:#C1, _name:#C2} |
| #C4 = 1 |
| #C5 = "two" |
| #C6 = self::E {index:#C4, _name:#C5} |
| #C7 = 2 |
| #C8 = "three" |
| #C9 = self::E {index:#C7, _name:#C8} |
| #C10 = <self::E*>[#C3, #C6, #C9] |
| } |
| |
| |
| Constructor coverage from constants: |
| org-dartlang-testcase:///entries_with_type_arguments.dart: |
| - E. (from org-dartlang-testcase:///entries_with_type_arguments.dart:5:6) |
| - _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart:76:9) |
| - Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart:25:9) |