| library /*isNonNullableByDefault*/; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_return_type.dart:2:3: Error: Constructors can't have a return type. |
| // Try removing the return type. |
| // void Foo() { |
| // ^^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_return_type.dart:5:3: Error: Constructors can't have a return type. |
| // Try removing the return type. |
| // void Foo() : initializer = true { |
| // ^^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_return_type.dart:5:8: Error: 'Foo' is already declared in this scope. |
| // void Foo() : initializer = true { |
| // ^^^ |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_return_type.dart:2:8: Context: Previous declaration of 'Foo'. |
| // void Foo() { |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_return_type.dart:8:3: Error: Constructors can't have a return type. |
| // Try removing the return type. |
| // void Foo.x() { |
| // ^^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_return_type.dart:11:3: Error: Constructors can't have a return type. |
| // Try removing the return type. |
| // void Foo.x() : initializer = true { |
| // ^^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_return_type.dart:11:8: Error: 'Foo.x' is already declared in this scope. |
| // void Foo.x() : initializer = true { |
| // ^^^^^ |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_return_type.dart:8:8: Context: Previous declaration of 'Foo.x'. |
| // void Foo.x() { |
| // ^^^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_return_type.dart:5:16: Error: 'initializer' isn't an instance field of this class. |
| // void Foo() : initializer = true { |
| // ^^^^^^^^^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_return_type.dart:11:18: Error: 'initializer' isn't an instance field of this class. |
| // void Foo.x() : initializer = true { |
| // ^^^^^^^^^^^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| class Foo extends core::Object { |
| constructor •() → self::Foo |
| : super core::Object::•() {} |
| constructor x() → self::Foo |
| : super core::Object::•() {} |
| } |