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
interfaceReadOnlyData{readonlyvalue: string;}letdata: ReadOnlyData={value:'foo'}letcopyOfData={...data};copyOfData.value='bar';// Error: Attempt to assign to const or readonly variable
馃檨 Actual behavior
error: Attempt to assign to const or readonly variable
馃檪 Expected behavior
the copy should be writeable
Additional information about the issue
This bug was fixed many years ago ( #15036), but it exists again in current versions of the language.
The text was updated successfully, but these errors were encountered:
馃攷 Search Terms
spread remove readonly
馃晽 Version & Regression Information
馃捇 Code
馃檨 Actual behavior
error: Attempt to assign to const or readonly variable
馃檪 Expected behavior
the copy should be writeable
Additional information about the issue
This bug was fixed many years ago ( #15036), but it exists again in current versions of the language.
The text was updated successfully, but these errors were encountered: