-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KT] Fix type substitution for fakeoverride methods call when implici…
…t cast is inserted. With K2, extra implicit cast may be inserted on the dispatch receiver on fakeoverride function calls. The targeted function still being the fakeoverride function defined on the original dispatch receiver (before the implicit cast), we loose type argument information breaking our type substitution mechanism. We work around this issue by detecting this case and returning the type arguments of the type before the implicit cast. PiperOrigin-RevId: 694401523
- Loading branch information
1 parent
9b4e24b
commit 3ddacdc
Showing
1 changed file
with
40 additions
and
2 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