| library; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:2:3: Error: The name of a constructor must match the name of the enclosing class. |
| // foo.x() { |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:5:3: Error: The name of a constructor must match the name of the enclosing class. |
| // foo.x() : initializer = true { |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:5:3: Error: 'Foo.x' is already declared in this scope. |
| // foo.x() : initializer = true { |
| // ^^^^^ |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:2:3: Context: Previous declaration of 'Foo.x'. |
| // foo.x() { |
| // ^^^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:8:3: Error: The name of a constructor must match the name of the enclosing class. |
| // foo() : initializer = true { |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:11:7: Error: A class member can't have the same name as the enclosing class. |
| // Try renaming the member. |
| // get Foo => 0; |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:12:7: Error: A class member can't have the same name as the enclosing class. |
| // Try renaming the member. |
| // get Foo { |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:12:7: Error: 'Foo' is already declared in this scope. |
| // get Foo { |
| // ^^^ |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:11:7: Context: Previous declaration of 'Foo'. |
| // get Foo => 0; |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:15:7: Error: A method declaration needs an explicit list of parameters. |
| // Try adding a parameter list to the method declaration. |
| // get Foo.X => 0; |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:15:3: Error: Constructors can't be a getter. |
| // Try removing 'get'. |
| // get Foo.X => 0; |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:16:7: Error: A method declaration needs an explicit list of parameters. |
| // Try adding a parameter list to the method declaration. |
| // get Foo.X { |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:16:3: Error: Constructors can't be a getter. |
| // Try removing 'get'. |
| // get Foo.X { |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:16:7: Error: 'Foo.X' is already declared in this scope. |
| // get Foo.X { |
| // ^^^^^ |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:15:7: Context: Previous declaration of 'Foo.X'. |
| // get Foo.X => 0; |
| // ^^^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:19:7: Error: A method declaration needs an explicit list of parameters. |
| // Try adding a parameter list to the method declaration. |
| // get Foo : bla = null => 0; |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:19:3: Error: Constructors can't be a getter. |
| // Try removing 'get'. |
| // get Foo : bla = null => 0; |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:20:7: Error: A method declaration needs an explicit list of parameters. |
| // Try adding a parameter list to the method declaration. |
| // get Foo.X : bla = null { |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:20:3: Error: Constructors can't be a getter. |
| // Try removing 'get'. |
| // get Foo.X : bla = null { |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:20:7: Error: 'Foo.X' is already declared in this scope. |
| // get Foo.X : bla = null { |
| // ^^^^^ |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:16:7: Context: Previous declaration of 'Foo.X'. |
| // get Foo.X { |
| // ^^^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:23:7: Error: A method declaration needs an explicit list of parameters. |
| // Try adding a parameter list to the method declaration. |
| // set Foo => 0; |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:23:7: Error: A class member can't have the same name as the enclosing class. |
| // Try renaming the member. |
| // set Foo => 0; |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:24:7: Error: A method declaration needs an explicit list of parameters. |
| // Try adding a parameter list to the method declaration. |
| // set Foo { |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:24:7: Error: A class member can't have the same name as the enclosing class. |
| // Try renaming the member. |
| // set Foo { |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:24:7: Error: 'Foo' is already declared in this scope. |
| // set Foo { |
| // ^^^ |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:23:7: Context: Previous declaration of 'Foo'. |
| // set Foo => 0; |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:27:7: Error: A method declaration needs an explicit list of parameters. |
| // Try adding a parameter list to the method declaration. |
| // set Foo.X => 0; |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:27:3: Error: Constructors can't be a setter. |
| // Try removing 'set'. |
| // set Foo.X => 0; |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:27:7: Error: 'Foo.X' is already declared in this scope. |
| // set Foo.X => 0; |
| // ^^^^^ |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:20:7: Context: Previous declaration of 'Foo.X'. |
| // get Foo.X : bla = null { |
| // ^^^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:28:7: Error: A method declaration needs an explicit list of parameters. |
| // Try adding a parameter list to the method declaration. |
| // set Foo.X { |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:28:3: Error: Constructors can't be a setter. |
| // Try removing 'set'. |
| // set Foo.X { |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:28:7: Error: 'Foo.X' is already declared in this scope. |
| // set Foo.X { |
| // ^^^^^ |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:27:7: Context: Previous declaration of 'Foo.X'. |
| // set Foo.X => 0; |
| // ^^^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:31:7: Error: A method declaration needs an explicit list of parameters. |
| // Try adding a parameter list to the method declaration. |
| // set Foo : bla = null => 0; |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:31:3: Error: Constructors can't be a setter. |
| // Try removing 'set'. |
| // set Foo : bla = null => 0; |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:31:7: Error: 'Foo' is already declared in this scope. |
| // set Foo : bla = null => 0; |
| // ^^^ |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:19:7: Context: Previous declaration of 'Foo'. |
| // get Foo : bla = null => 0; |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:32:7: Error: A method declaration needs an explicit list of parameters. |
| // Try adding a parameter list to the method declaration. |
| // set Foo.X : bla = null { |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:32:3: Error: Constructors can't be a setter. |
| // Try removing 'set'. |
| // set Foo.X : bla = null { |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:32:7: Error: 'Foo.X' is already declared in this scope. |
| // set Foo.X : bla = null { |
| // ^^^^^ |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:28:7: Context: Previous declaration of 'Foo.X'. |
| // set Foo.X { |
| // ^^^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:35:18: Error: An external constructor can't have any initializers. |
| // external Foo() : bla = null; |
| // ^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:35:12: Error: 'Foo' is already declared in this scope. |
| // external Foo() : bla = null; |
| // ^^^ |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:31:7: Context: Previous declaration of 'Foo'. |
| // set Foo : bla = null => 0; |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:36:33: Error: An external or native method can't have a body. |
| // external Foo.X() : bla = null { |
| // ^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:36:20: Error: An external constructor can't have any initializers. |
| // external Foo.X() : bla = null { |
| // ^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:36:12: Error: 'Foo.X' is already declared in this scope. |
| // external Foo.X() : bla = null { |
| // ^^^^^ |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:32:7: Context: Previous declaration of 'Foo.X'. |
| // set Foo.X : bla = null { |
| // ^^^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:39:7: Error: A class member can't have the same name as the enclosing class. |
| // Try renaming the member. |
| // int Foo; |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:39:7: Error: 'Foo' is already declared in this scope. |
| // int Foo; |
| // ^^^ |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:12:7: Context: Previous declaration of 'Foo'. |
| // get Foo { |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:40:10: Error: A class member can't have the same name as the enclosing class. |
| // Try renaming the member. |
| // int A, Foo, B; |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:40:10: Error: 'Foo' is already declared in this scope. |
| // int A, Foo, B; |
| // ^^^ |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:39:7: Context: Previous declaration of 'Foo'. |
| // int Foo; |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:24:7: Error: Conflicts with the implicit setter of the field 'Foo'. |
| // set Foo { |
| // ^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:40:10: Error: Conflicts with setter 'Foo'. |
| // int A, Foo, B; |
| // ^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_bad_name_general.crash_dart:23:7: Error: Conflicts with the implicit setter of the field 'Foo'. |
| // set Foo => 0; |
| // ^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| class Foo extends core::Object { |
| field core::int* A; |
| field core::int* B; |
| constructor x() → self::Foo* |
| ; |
| constructor foo() → self::Foo* |
| ; |
| constructor X() → self::Foo* |
| ; |
| constructor •() → self::Foo* |
| ; |
| get Foo() → dynamic |
| ; |
| abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode |
| abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf |
| abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf |
| abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue |
| abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse |
| abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== |
| abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode |
| abstract member-signature method toString() → core::String*; -> core::Object::toString |
| abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod |
| abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType |
| } |