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
interfaceX{readonlyvalue: 'x';}interfaceY{value: 'y';}typeZ=X|Y;varz: Z=<Z>{value: 'y'};z.value='x';// expected an error saying that value: 'x' is readonly and cannot be set, actual OK
UPDATE:
even this example doesn't work (with both possible options being readonly)
interfaceX{readonlyvalue: 'x';}interfaceY{readonlyvalue: 'y';}typeZ=X|Y;varz: Z=<Z>{value: 'y'};z.value='x';// expected an error saying that value: 'x' is readonly and cannot be set, actual OK
The text was updated successfully, but these errors were encountered:
UPDATE:
even this example doesn't work (with both possible options being
readonly
)The text was updated successfully, but these errors were encountered: