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

Unified Diff: pkg/analyzer/lib/src/summary/link.dart

Issue 2336503003: fix #25578, implement @covariant parameter overrides (Closed)
Patch Set: fix comments, format Created 4 years, 3 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 | « pkg/analyzer/lib/src/generated/type_system.dart ('k') | pkg/analyzer/lib/src/task/strong/checker.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/link.dart
diff --git a/pkg/analyzer/lib/src/summary/link.dart b/pkg/analyzer/lib/src/summary/link.dart
index 7d77fb860dffa5d2b86c209e0aea550d9220a8e7..868218a80f503cd947d0aaf4cd018662bf0189ac 100644
--- a/pkg/analyzer/lib/src/summary/link.dart
+++ b/pkg/analyzer/lib/src/summary/link.dart
@@ -3901,6 +3901,9 @@ class ParameterElementForLink implements ParameterElementImpl {
DartType _inferredType;
DartType _declaredType;
+ @override
+ bool inheritsCovariant = false;
+
ParameterElementForLink(this.enclosingElement, this._unlinkedParam,
this._typeParameterContext, this.compilationUnit, this._parameterIndex) {
if (_unlinkedParam.initializer?.bodyExpr != null) {
@@ -3916,6 +3919,9 @@ class ParameterElementForLink implements ParameterElementImpl {
!_unlinkedParam.isFunctionTyped && _unlinkedParam.type == null;
@override
+ bool get isCovariant => false;
+
+ @override
String get name => _unlinkedParam.name;
@override
« no previous file with comments | « pkg/analyzer/lib/src/generated/type_system.dart ('k') | pkg/analyzer/lib/src/task/strong/checker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698