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
As of version 0.651, creating a table with a key being a readonly property of another table warns about the property being readonly, despite it not actually being assigned to. This only appears to occur in the new solver, and can be worked around by casting the key to any type or assigning it later.
--!stricttypereadonlyTable= {readid:number}
localt:readonlyTable= {id=1}
local_:{number} = {[t.id] =1} --Property id of table 'readonlyTable' is read-onlylocal_:{number} = {[t.id::number] =1} --no type errorlocalarr:{number} = {}
arr[t.id] =1--no type error
The text was updated successfully, but these errors were encountered:
## What's new?
* Add support for mixed-mode type checking, which allows modules checked
in the old type solver to be checked and autocompleted by the new one.
* Generalize `RequireResolver` to support require-by-string semantics in
`luau-analyze`.
* Fix a bug in incremental autocomplete where `DefId`s associated with
index expressions were not correctly picked up.
* Fix a bug that prevented "complex" types in generic parameters (for
example, `local x: X<(() -> ())?>`).
### Issues fixed
* #1507
* #1518
---
Internal Contributors:
Co-authored-by: Aaron Weiss <aaronweiss@roblox.com>
Co-authored-by: Andy Friesen <afriesen@roblox.com>
Co-authored-by: Hunter Goldstein <hgoldstein@roblox.com>
Co-authored-by: Varun Saini <vsaini@roblox.com>
Co-authored-by: Vighnesh Vijay <vvijay@roblox.com>
As of version 0.651, creating a table with a key being a readonly property of another table warns about the property being readonly, despite it not actually being assigned to. This only appears to occur in the new solver, and can be worked around by casting the key to any type or assigning it later.
The text was updated successfully, but these errors were encountered: