| 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:16: Error: A extension type declaration must have a body, even if it is empty. |
| // Try adding an empty body. |
| // extension type E on A {} // Error because of 'type'. |
| // ^ |
| // |
| // pkg/front_end/testcases/general/extension_types_feature_not_enabled.dart:9:11: Error: This requires the experimental 'inline-class' language feature to be enabled. |
| // Try passing the '--enable-experiment=inline-class' command line option. |
| // extension type E on A {} // Error because of 'type'. |
| // ^^^^ |
| // |
| // pkg/front_end/testcases/general/extension_types_feature_not_enabled.dart:9:21: Error: A function declaration needs an explicit list of parameters. |
| // Try adding a parameter list to the function declaration. |
| // extension type E on A {} // Error because of 'type'. |
| // ^ |
| // |
| // pkg/front_end/testcases/general/extension_types_feature_not_enabled.dart:9:21: Error: 'A' is already declared in this scope. |
| // extension type E on A {} // Error because of 'type'. |
| // ^ |
| // pkg/front_end/testcases/general/extension_types_feature_not_enabled.dart:7:7: Context: Previous declaration of 'A'. |
| // class A {} |
| // ^ |
| // |
| // pkg/front_end/testcases/general/extension_types_feature_not_enabled.dart:9:18: Error: Type 'on' not found. |
| // 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 {} |