diff --git a/pkg/_fe_analyzer_shared/test/mini_types.dart b/pkg/_fe_analyzer_shared/test/mini_types.dart index e431ec1ab1d1..6190ad650983 100644 --- a/pkg/_fe_analyzer_shared/test/mini_types.dart +++ b/pkg/_fe_analyzer_shared/test/mini_types.dart @@ -180,13 +180,19 @@ class InvalidType extends _SpecialSimpleType } /// A named parameter of a function type. -class NamedFunctionParameter extends NamedType +class NamedFunctionParameter implements SharedNamedFunctionParameterStructure { + @override + final String name; + + @override + final Type type; + @override final bool isRequired; NamedFunctionParameter( - {required this.isRequired, required super.name, required super.type}); + {required this.isRequired, required this.name, required this.type}); @override String toString() => [if (isRequired) 'required', type, name].join(' ');