Skip to content

Commit a5c3b34

Browse files
scheglovCommit Queue
authored andcommitted
Elements. Set element for a synthetic covariant merge.
Change-Id: I61e7ba6c6753811eedf75acdfdfcc294467dc8e0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/404200 Reviewed-by: Brian Wilkerson <[email protected]> Reviewed-by: Phil Quitslund <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent 077a4c3 commit a5c3b34

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/analyzer/lib/src/dart/element/inheritance_manager3.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,6 +1071,11 @@ class InheritanceManager3 {
10711071
result.parameters = transformedParameters;
10721072
result.returnType = executable.returnType;
10731073
result.typeParameters = executable.typeParameters.cast();
1074+
result.element = MethodElementImpl2(
1075+
Reference.root(), // TODO(scheglov): wrong
1076+
executable.name,
1077+
result,
1078+
);
10741079
return result;
10751080
}
10761081

0 commit comments

Comments
 (0)