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
{{ message }}
Repository navigation
TS 3.5 new error when using keyof with assignment to copy property #31382
Expected behavior:
This compiles under TS 3.4.5 without any errors
Actual behavior:
In TS 3.5, this is a compile error:
Type 'string' is not assignable to type 'string & number'.
Type 'string' is not assignable to type 'number'.
This is a reasonable error IMO, the change should just be noted somewhere (an issue may already exist but I wasn't sure which keywords to search for). We saw this in the VS Code codebase
Activity
jack-williams commentedon May 14, 2019
The PR introducing the change was this one #30769