mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-12 13:00:38 +00:00
f2488bdfa4
Fix for https://github.com/luau-lang/luau/issues/1406 While it is good to let ``index`` wait for the pending-expansion. To re-produce the issue you need more than just this code: https://i.imgur.com/b3OmUGF.png It needs this, else it won't crash. ```lua local function ProblemCauser(key: Keys, value) PlayerData[key] = value end ``` But regarding "pending things", I'd recommend **generalized functions** for sanity checks like these, since there will be more cases of similar issues I believe. But I am 100% sure that eventually this issue here can maybe be prevented if looking at the Constraints. _(And optimization)_ Not sure if ``index`` needs the table fully completed, or if it is preferred that the info is available based on **how much info is available at the current position in the code**. But if this gets done, I hope that they'll be connected to the Solver Logger, because I actually refined mine with colors and more info _(yet need to finish that)_ to understand the Luau Source Code more and to debug issues. --------- Co-authored-by: aaron <aweiss@hey.com> |
||
---|---|---|
.. | ||
include/Luau | ||
src |