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

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

Issue 2995813002: fix #30423, covariant parameter tearoff type should be Object (Closed)
Patch Set: Created 3 years, 4 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
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 122de77747d5d01faa4d22802c298c7d936616dc..2379185a61a6ce8e5960b94b2c6268af82f45187 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -7225,6 +7225,10 @@ class MethodElementImpl extends ExecutableElementImpl implements MethodElement {
MethodDeclaration computeNode() =>
getNodeMatching((node) => node is MethodDeclaration);
+ // TODO(jmesserly): this implementation is completely wrong:
+ // It does not handle covariant parameters from a generic class.
+ // It drops type parameters from generic methods.
+ // Since this method was for DDC, it should be removed.
@override
FunctionType getReifiedType(DartType objectType) {
Jennifer Messerly 2017/08/12 00:10:49 FYI: I want to remove this, because it's broken, a
Paul Berry 2017/08/14 16:11:47 Sounds good! I suggest you mark it as @deprecated
// Check whether we have any covariant parameters.

Powered by Google App Engine
This is Rietveld 408576698