-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix #12739: Handle type alias in capturing wildcards #12795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@liufengyun are you planning to get back to this one? If not, can it be closed? |
I investigated the community build failure some time ago, but could not figure out the cause. I see you self-assigned, could you lend a hand, @dwijnand? Thank you. |
I misread the PR, so now it's a challenge whether I can figure it out or not... :-D |
Minimised: type Foo = { type Bar }
extension (foo: Foo)
def toBar(): foo.Bar = ???
def test(foo: Foo): foo.Bar = foo.toBar()
@liufengyun does that ring any bells? Any ideas? |
Nice minimization @dwijnand 👍 It seems dealias changes the type checking path: val captured = captureWildcards(wtp)
if (captured `ne` wtp)
return readapt(tree.cast(captured)) Previously, the With the minimization (which is the most difficult part), you are closer to a fix. What about you make a new PR with a proper fix and we close this one? |
Fix #12739: Handle type alias in capturing wildcards