| // Formatted problems: |
| // |
| // pkg/front_end/testcases/duplicated_declarations.dart:7:9: Error: 'Typedef' is already declared in this scope. |
| // typedef Typedef = Object Function(); |
| // ^^^^^^^ |
| // pkg/front_end/testcases/duplicated_declarations.dart:5:9: Context: Previous declaration of 'Typedef'. |
| // typedef Typedef = void Function(); |
| // ^^^^^^^ |
| // |
| // pkg/front_end/testcases/duplicated_declarations.dart:11:16: Error: 'OldTypedef' is already declared in this scope. |
| // typedef Object OldTypedef(); |
| // ^^^^^^^^^^ |
| // pkg/front_end/testcases/duplicated_declarations.dart:9:14: Context: Previous declaration of 'OldTypedef'. |
| // typedef void OldTypedef(); |
| // ^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/duplicated_declarations.dart:15:5: Error: 'field' is already declared in this scope. |
| // var field = "2nd"; |
| // ^^^^^ |
| // pkg/front_end/testcases/duplicated_declarations.dart:13:5: Context: Previous declaration of 'field'. |
| // var field = "1st"; |
| // ^^^^^ |
| // |
| // pkg/front_end/testcases/duplicated_declarations.dart:21:1: Error: 'main' is already declared in this scope. |
| // main() { |
| // ^^^^ |
| // pkg/front_end/testcases/duplicated_declarations.dart:17:1: Context: Previous declaration of 'main'. |
| // main() { |
| // ^^^^ |
| // |
| // pkg/front_end/testcases/duplicated_declarations.dart:33:3: Error: 'C' is already declared in this scope. |
| // C(a, b); |
| // ^ |
| // pkg/front_end/testcases/duplicated_declarations.dart:32:3: Context: Previous declaration of 'C'. |
| // C(a); |
| // ^ |
| // |
| // pkg/front_end/testcases/duplicated_declarations.dart:36:7: Error: 'field' is already declared in this scope. |
| // var field = "2nd"; |
| // ^^^^^ |
| // pkg/front_end/testcases/duplicated_declarations.dart:34:7: Context: Previous declaration of 'field'. |
| // var field = "1st"; |
| // ^^^^^ |
| // |
| // pkg/front_end/testcases/duplicated_declarations.dart:42:3: Error: 'm' is already declared in this scope. |
| // m() { |
| // ^ |
| // pkg/front_end/testcases/duplicated_declarations.dart:38:3: Context: Previous declaration of 'm'. |
| // m() { |
| // ^ |
| // |
| // pkg/front_end/testcases/duplicated_declarations.dart:50:10: Error: 's' is already declared in this scope. |
| // static s() { |
| // ^ |
| // pkg/front_end/testcases/duplicated_declarations.dart:46:10: Context: Previous declaration of 's'. |
| // static s() { |
| // ^ |
| // |
| // pkg/front_end/testcases/duplicated_declarations.dart:62:7: Error: 'C' is already declared in this scope. |
| // class C { |
| // ^ |
| // pkg/front_end/testcases/duplicated_declarations.dart:31:7: Context: Previous declaration of 'C'. |
| // class C { |
| // ^ |
| // |
| // pkg/front_end/testcases/duplicated_declarations.dart:67:3: Error: Name of enum constant 'Enum' can't be the same as the enum's own name. |
| // Enum, |
| // ^^^^ |
| // |
| // pkg/front_end/testcases/duplicated_declarations.dart:69:3: Error: 'a' is already declared in this scope. |
| // a, |
| // ^ |
| // pkg/front_end/testcases/duplicated_declarations.dart:68:3: Context: Previous declaration of 'a'. |
| // a, |
| // ^ |
| // |
| // pkg/front_end/testcases/duplicated_declarations.dart:73:6: Error: 'Enum' is already declared in this scope. |
| // enum Enum { |
| // ^^^^ |
| // pkg/front_end/testcases/duplicated_declarations.dart:66:6: Context: Previous declaration of 'Enum'. |
| // enum Enum { |
| // ^^^^ |
| // |
| // pkg/front_end/testcases/duplicated_declarations.dart:83:3: Error: '_name' is already declared in this scope. |
| // _name, |
| // ^^^^^ |
| // pkg/front_end/testcases/duplicated_declarations.dart:79:6: Context: Previous declaration of '_name' is implied by this definition. |
| // enum AnotherEnum { |
| // ^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/duplicated_declarations.dart:84:3: Error: 'index' is already declared in this scope. |
| // index, |
| // ^^^^^ |
| // pkg/front_end/testcases/duplicated_declarations.dart:79:6: Context: Previous declaration of 'index' is implied by this definition. |
| // enum AnotherEnum { |
| // ^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/duplicated_declarations.dart:85:3: Error: 'toString' is already declared in this scope. |
| // toString, |
| // ^^^^^^^^ |
| // pkg/front_end/testcases/duplicated_declarations.dart:79:6: Context: Previous declaration of 'toString' is implied by this definition. |
| // enum AnotherEnum { |
| // ^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/duplicated_declarations.dart:86:3: Error: 'values' is already declared in this scope. |
| // values, |
| // ^^^^^^ |
| // pkg/front_end/testcases/duplicated_declarations.dart:79:6: Context: Previous declaration of 'values' is implied by this definition. |
| // enum AnotherEnum { |
| // ^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/duplicated_declarations.dart:57:19: Error: 'C' isn't a type. |
| // class Sub extends C { |
| // ^ |
| |
| library; |
| import self as self; |
| import "dart:core" as core; |
| |
| typedef Typedef = () → void; |
| typedef OldTypedef = () → void; |
| class C#1 extends core::Object { |
| constructor _() → self::C#1 |
| ; |
| } |
| class C extends core::Object { |
| field dynamic field; |
| constructor •(dynamic a) → self::C |
| ; |
| method m() → dynamic |
| ; |
| static method s() → dynamic |
| ; |
| static method f() → dynamic |
| ; |
| } |
| class Sub extends core::Object { |
| constructor •() → self::Sub |
| ; |
| method m() → dynamic |
| ; |
| } |
| class Enum#1 extends core::Object { |
| final field core::int index; |
| final field core::String _name; |
| static const field core::List<self::Enum#1> values = const <self::Enum#1>[self::Enum#1::a, self::Enum#1::b, self::Enum#1::c]; |
| static const field self::Enum#1 a = const self::Enum#1::•(0, "Enum.a"); |
| static const field self::Enum#1 b = const self::Enum#1::•(1, "Enum.b"); |
| static const field self::Enum#1 c = const self::Enum#1::•(2, "Enum.c"); |
| const constructor •(core::int index, core::String _name) → self::Enum#1 |
| : self::Enum#1::index = index, self::Enum#1::_name = _name, super core::Object::•() |
| ; |
| method toString() → core::String |
| return this.{=self::Enum#1::_name}; |
| } |
| class Enum extends core::Object { |
| final field core::int index; |
| final field core::String _name; |
| static const field core::List<self::Enum> values = const <self::Enum>[self::Enum::Enum, self::Enum::a, self::Enum::b]; |
| static const field self::Enum Enum = const self::Enum::•(0, "Enum.Enum"); |
| static const field self::Enum a = const self::Enum::•(1, "Enum.a"); |
| static const field self::Enum b = const self::Enum::•(2, "Enum.b"); |
| const constructor •(core::int index, core::String _name) → self::Enum |
| : self::Enum::index = index, self::Enum::_name = _name, super core::Object::•() |
| ; |
| method toString() → core::String |
| return this.{=self::Enum::_name}; |
| } |
| class AnotherEnum extends core::Object { |
| final field core::int index; |
| final field core::String _name; |
| static const field core::List<self::AnotherEnum> values = const <self::AnotherEnum>[self::AnotherEnum::a, self::AnotherEnum::b, self::AnotherEnum::c]; |
| static const field self::AnotherEnum a = const self::AnotherEnum::•(0, "AnotherEnum.a"); |
| static const field self::AnotherEnum b = const self::AnotherEnum::•(1, "AnotherEnum.b"); |
| static const field self::AnotherEnum c = const self::AnotherEnum::•(2, "AnotherEnum.c"); |
| const constructor •(core::int index, core::String _name) → self::AnotherEnum |
| : self::AnotherEnum::index = index, self::AnotherEnum::_name = _name, super core::Object::•() |
| ; |
| method toString() → core::String |
| return this.{=self::AnotherEnum::_name}; |
| } |
| static field dynamic field; |
| static method main() → dynamic |
| ; |
| static method foo() → dynamic |
| ; |
| static method useAnotherEnum() → dynamic |
| ; |