blob: 811d6c2fa24a94d6dcc88e6e251e4076c5ec9360 [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/extension_types_feature_not_enabled.dart:9:16: Error: An extension type declaration must have a primary constructor declaration.
// Try adding a primary constructor to the extension type declaration.
// extension type E on A {} // Error because of 'type'.
// ^
//
// pkg/front_end/testcases/general/extension_types_feature_not_enabled.dart:9:18: Error: Expected 'extends' instead of this.
// extension type E on A {} // Error because of 'type'.
// ^^
//
// pkg/front_end/testcases/general/extension_types_feature_not_enabled.dart:9:18: Error: An extension type declaration can't have an 'extends' clause.
// Try removing the 'extends' clause or replacing the 'extends' with 'implements'.
// extension type E on A {} // Error because of 'type'.
// ^^
//
import self as self;
import "dart:core" as core;
class A extends core::Object {
synthetic constructor •() self::A
: super core::Object::•()
;
}
extension type E(invalid-type #) {
}
static method main() dynamic {}