-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[analyzer] Fix type of transformedParameters when inheriting covariance
In `InheritanceManager3._inheritCovariance`, if the original `ExecutableElement` is in fact an `ExecutableMember`, then its parameters will be `ParameterMember`s. These `ParameterMember`s need to be converted to `ParameterElementImpl`s in order to be safely stored in the synthetic `ExecutableElementImpl` that `_inheritCovariance` returns. I will follow up with a fix that changes the type accepted by `ExecutableElementImpl.parameters=` in order to prevent similar problems happening in the future. Fixes #59849. Bug: #59849 Change-Id: I636fd8cca0411745aedb3cd834354b4dcc0aadc1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/403322 Commit-Queue: Paul Berry <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]>
- Loading branch information
1 parent
3a73f32
commit e4e42f7
Showing
3 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters