| library; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_ok.dart:5:3: Error: 'Foo' is already declared in this scope. |
| // Foo() : initializer = true { |
| // ^^^ |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_ok.dart:2:3: Context: Previous declaration of 'Foo'. |
| // Foo() { |
| // ^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_ok.dart:11:3: Error: 'Foo.x' is already declared in this scope. |
| // Foo.x() : initializer = true { |
| // ^^^^^ |
| // pkg/front_end/testcases/general/error_recovery/constructor_recovery_ok.dart:8:3: Context: Previous declaration of 'Foo.x'. |
| // Foo.x() { |
| // ^^^^^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| class Foo extends core::Object { |
| constructor •() → self::Foo* |
| ; |
| constructor x() → self::Foo* |
| ; |
| } |