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
this can be seen in the nightly build as of Dec 17 (as well as at playground)
interfaceReadOnlyData{readonlyvalue: number;}interfaceWritableData{value: number;}functionerase(data: WritableData): void{data.value=0;}constreadOnly: ReadOnlyData={value: 1};erase(readOnly);// expected a type error, actual: no problem
this can't be serious, can it? why is it called readonly?
please note there are no type assertions or any other attempts to trick the type system, it just simply doesn't work