You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reported code is almost an exact copy of what was reported in this comment #27273 (comment) and here #56431 . The last experiment to fix this was worked on here #56441
π Search Terms
"destructuring", "record"
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play/?ts=5.6.3#code/MYewdgzgLgBATgU1HAJgdQJZQBYGUpwZgDmEAXDAEpIioA80hJANDI0cQHwwC8MA3gF8A3AChRCAB4AHWrFCRYiZOizYAcgFcAtgCMEcclRr12LGGB3643Pv1EwYUggEMACnBDSDUAJ4UABmYHGAA6cOVaVRx8JlJgkSA
π» Code
This raises a type error:
and this doesn't:
Is there a sound reason for that?
π Actual behavior
The 2nd example doesn't raise a type error.
π Expected behavior
The 2nd example should raise a type error.
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: