Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(860)

Unified Diff: pkg/analyzer/lib/src/dart/element/element.dart

Issue 2965053002: Fix for types of function-typed parameters in reified type of MethodElement. (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698