| library; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/super_parameters/duplicate_constructor.dart:9:3: Error: 'Super' is already declared in this scope. |
| // Super(this.field); |
| // ^^^^^ |
| // pkg/front_end/testcases/super_parameters/duplicate_constructor.dart:8:3: Context: Previous declaration of 'Super'. |
| // Super(this.field); |
| // ^^^^^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| class Super extends core::Object { |
| final field core::int field; |
| constructor •(core::int field) → self::Super |
| : self::Super::field = field, super core::Object::•() |
| ; |
| } |
| class Sub extends self::Super { |
| constructor •(invalid-type field) → self::Sub |
| : final dynamic #t1 = invalid-expression "pkg/front_end/testcases/super_parameters/duplicate_constructor.dart:13:3: Error: Can't use 'new' because it is declared more than once. |
| Sub(super.field); |
| ^" |
| ; |
| } |