| library; | |
| // | |
| // Problems in library: | |
| // | |
| // pkg/front_end/testcases/augmentations/enum_constructors.dart:11:3: Error: The superclass, '_Enum', has no unnamed constructor that takes no arguments. | |
| // new (int x, [int y = 0]) : x = x, y = y; | |
| // ^ | |
| // | |
| // pkg/front_end/testcases/augmentations/enum_constructors.dart:23:3: Error: The superclass, '_Enum', has no unnamed constructor that takes no arguments. | |
| // new ({required int x, int y = 0}) : x = x, y = y; | |
| // ^ | |
| // | |
| import self as self; | |
| import "dart:core" as core; | |
| class E1 extends core::_Enum /*isEnum*/ { | |
| enum-element static const field self::E1 e0 = invalid-expression "pkg/front_end/testcases/augmentations/enum_constructors.dart:11:3: Error: The superclass, '_Enum', has no unnamed constructor that takes no arguments. | |
| new (int x, [int y = 0]) : x = x, y = y; | |
| ^"; | |
| enum-element static const field self::E1 e1 = invalid-expression "pkg/front_end/testcases/augmentations/enum_constructors.dart:11:3: Error: The superclass, '_Enum', has no unnamed constructor that takes no arguments. | |
| new (int x, [int y = 0]) : x = x, y = y; | |
| ^"; | |
| final field dynamic x; | |
| final field dynamic y; | |
| static const field core::List<self::E1> values = invalid-expression "pkg/front_end/testcases/augmentations/enum_constructors.dart:11:3: Error: The superclass, '_Enum', has no unnamed constructor that takes no arguments. | |
| new (int x, [int y = 0]) : x = x, y = y; | |
| ^"; | |
| const constructor •(core::int #index, core::String #name, core::int x, [core::int y = #C1]) → self::E1 | |
| : invalid-initializer "pkg/front_end/testcases/augmentations/enum_constructors.dart:11:3: Error: The superclass, '_Enum', has no unnamed constructor that takes no arguments. | |
| new (int x, [int y = 0]) : x = x, y = y; | |
| ^" | |
| ; | |
| method core::_enumToString() → core::String | |
| return "E1.${this.{core::_Enum::_name}{core::String}}"; | |
| } | |
| class E2 extends core::_Enum /*isEnum*/ { | |
| enum-element static const field self::E2 e0 = invalid-expression "pkg/front_end/testcases/augmentations/enum_constructors.dart:23:3: Error: The superclass, '_Enum', has no unnamed constructor that takes no arguments. | |
| new ({required int x, int y = 0}) : x = x, y = y; | |
| ^"; | |
| enum-element static const field self::E2 e1 = invalid-expression "pkg/front_end/testcases/augmentations/enum_constructors.dart:23:3: Error: The superclass, '_Enum', has no unnamed constructor that takes no arguments. | |
| new ({required int x, int y = 0}) : x = x, y = y; | |
| ^"; | |
| final field dynamic x; | |
| final field dynamic y; | |
| static const field core::List<self::E2> values = invalid-expression "pkg/front_end/testcases/augmentations/enum_constructors.dart:23:3: Error: The superclass, '_Enum', has no unnamed constructor that takes no arguments. | |
| new ({required int x, int y = 0}) : x = x, y = y; | |
| ^"; | |
| const constructor •(core::int #index, core::String #name, {required core::int x, core::int y = #C1}) → self::E2 | |
| : invalid-initializer "pkg/front_end/testcases/augmentations/enum_constructors.dart:23:3: Error: The superclass, '_Enum', has no unnamed constructor that takes no arguments. | |
| new ({required int x, int y = 0}) : x = x, y = y; | |
| ^" | |
| ; | |
| method core::_enumToString() → core::String | |
| return "E2.${this.{core::_Enum::_name}{core::String}}"; | |
| } | |
| static method main() → dynamic {} | |
| static method expect(dynamic expected, dynamic actual) → dynamic { | |
| if(!(expected =={core::Object::==}{(core::Object) → core::bool} actual)) | |
| throw "Expected ${expected}, actual ${actual}"; | |
| } | |
| constants { | |
| #C1 = 0 | |
| } | |
| Constructor coverage from constants: | |
| org-dartlang-testcase:///enum_constructors.dart: | |
| - E1. (from org-dartlang-testcase:///enum_constructors.dart:11:3) | |
| - E2. (from org-dartlang-testcase:///enum_constructors.dart:23:3) |