-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Generic mapped as clause regression in 4.7 #49541
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
Comments
I also narrowed down to this line in the PR's diff. What to do with it, I'm unsure of, but I thought it might be of use. |
This is working as intended. The commits above added checks that should have been present in the first place. The issue we have is that when a mapped type includes an Also see comment here. |
This issue has been marked 'Working as Intended' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
Bug Report
π Search Terms
mapped, generic, as clause
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
The issue goes away if you remove the
as Id<A>
inObj
.π Actual behavior
π Expected behavior
The compiler used to resolve
o['a' as A]
asnull
.The text was updated successfully, but these errors were encountered: