| library /*isNonNullableByDefault*/; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/general/error_recovery/issue_22313.dart:5:20: Error: Each class definition can have at most one extends clause. |
| // Try choosing one superclass and define your class to implement (or mix in) the others. |
| // class Foo extends A, B { |
| // ^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/issue_22313.dart:9:11: Error: Expected 'extends' instead of this. |
| // class Bar extend A, B { |
| // ^^^^^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/issue_22313.dart:9:19: Error: Each class definition can have at most one extends clause. |
| // Try choosing one superclass and define your class to implement (or mix in) the others. |
| // class Bar extend A, B { |
| // ^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/issue_22313.dart:13:11: Error: Expected 'extends' instead of this. |
| // class Baz on A, B { |
| // ^^ |
| // |
| // pkg/front_end/testcases/general/error_recovery/issue_22313.dart:13:15: Error: Each class definition can have at most one extends clause. |
| // Try choosing one superclass and define your class to implement (or mix in) the others. |
| // class Baz on A, B { |
| // ^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| class A extends core::Object { |
| synthetic constructor •() → self::A |
| : super core::Object::•() |
| ; |
| } |
| class B extends core::Object { |
| synthetic constructor •() → self::B |
| : super core::Object::•() |
| ; |
| } |
| class Foo extends self::A { |
| constructor •() → self::Foo |
| : super self::A::•() {} |
| } |
| class Bar extends core::Object { |
| constructor •() → self::Bar |
| : super core::Object::•() {} |
| } |
| class Baz extends core::Object { |
| constructor •() → self::Baz |
| : super core::Object::•() {} |
| } |
| static method main() → dynamic {} |