-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Order of ReadonlySet/ReadonlyMap in union causes differing key inference #52313
Labels
Milestone
Comments
π Hi, I'm the Repro bot. I can help narrow down and track compiler bugs across releases! This comment reflects the current state of the repro in the issue body running against the nightly TypeScript. Issue body code block by @jakebailey β Failed: -
Historical Information
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
π Search Terms
ReadonlyMap ReadonlySet key inference
π Version & Regression Information
β― Playground Link
Playground Link
π» Code
π Actual behavior
The order of the union appears to matter, breaking inference and erroring on valid code. Swapping the union order allows the code to compile.
π Expected behavior
All of this should compile; the union ordering should not matter.
The text was updated successfully, but these errors were encountered: