-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Contextual narrowing not narrowing on generic map. #45234
Comments
Generic functions like It seems like what you really want is something like #27808 where the type parameter This also feels like |
Right - the compiler doesnβt understand that |
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
Bug Report
π Search Terms
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Second reference of
event
is typeEvent | UIEvent | AnimationEvent | MouseEvent | InputEvent | FocusEvent | CompositionEvent | ... 9 more ... | ClipboardEvent
.π Expected behavior
Second reference of
event
to be of typeMouseEvent
.The text was updated successfully, but these errors were encountered: