readonly object spread fails: property bar
is read-only in object type [1] but writable in object literal [2].
#7242
Milestone
bar
is read-only in object type [1] but writable in object literal [2].
#7242
Try flow
Following code:
results following error:
As seen from the snippet, there is no writing happening. The nested object is what's failing. The error location is also very awkward: It's in the type, not in the usage which makes suppressing very inconvenient.
There has been similar bug that's been already fixed in 0.83.0 version, but most likely very related and would lead to proper fix in this case too: #6089
The text was updated successfully, but these errors were encountered: