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
Activity
sandersn commentedon Jun 14, 2016
#9167 fixes this for unions and intersections.