Index: pkg/analyzer/lib/src/dart/element/element.dart |
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart |
index 2da9fd6d06c337ba892382898451c93bfc9067a1..1986171013491f1f9f176447c1101a4d65c3aa01 100644 |
--- a/pkg/analyzer/lib/src/dart/element/element.dart |
+++ b/pkg/analyzer/lib/src/dart/element/element.dart |
@@ -6662,7 +6662,7 @@ class MethodElementImpl extends ExecutableElementImpl implements MethodElement { |
List<ParameterElement> covariantParameters = parameters.map((parameter) { |
DartType type = parameter.isCovariant ? objectType : parameter.type; |
return new ParameterElementImpl.synthetic( |
- parameter.name, objectType, parameter.parameterKind); |
+ parameter.name, type, parameter.parameterKind); |
}).toList(); |
return new FunctionElementImpl.synthetic(covariantParameters, returnType) |