| library /*isNonNullableByDefault*/; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/constructor_tearoffs/explicit_new_as_unnamed.dart:15:3: Error: 'C' is already declared in this scope. |
| // C.new(); // Error. |
| // ^ |
| // pkg/front_end/testcases/constructor_tearoffs/explicit_new_as_unnamed.dart:14:3: Context: Previous declaration of 'C'. |
| // C(); |
| // ^ |
| // |
| // pkg/front_end/testcases/constructor_tearoffs/explicit_new_as_unnamed.dart:20:3: Error: 'D' is already declared in this scope. |
| // D(); // Error. |
| // ^ |
| // pkg/front_end/testcases/constructor_tearoffs/explicit_new_as_unnamed.dart:19:3: Context: Previous declaration of 'D'. |
| // D.new(); |
| // ^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| class A extends core::Object { |
| constructor •() → self::A |
| ; |
| } |
| class B extends core::Object { |
| constructor •() → self::B |
| ; |
| } |
| class C extends core::Object { |
| constructor •() → self::C |
| ; |
| } |
| class D extends core::Object { |
| constructor •() → self::D |
| ; |
| } |
| static method main() → dynamic |
| ; |