Back to Luau

Recap: April 2022

news-2022-05-02-luau-recap-april-2022.md

latest2.3 KB
Original Source

Recap: April 2022

May 2, 2022

It’s been a bit of a quiet month. We mostly have small optimizations and bugfixes for you.

It is now allowed to define functions on sealed tables that have string indexers. These functions will be typechecked against the indexer type. For example, the following is now valid:

Embedded content

Autocomplete will now provide string literal suggestions for singleton types. eg

Embedded content

Improve error recovery in the case where we encounter a type pack variable in a place where one is not allowed. eg type Foo<A...> = { value: A... }

When code does not pass enough arguments to a variadic function, the error feedback is now better.

For example, the following script now produces a much nicer error message:

Embedded content

If the following code were to error because Hello was undefined, we would erroneously include the comment in the span of the error. This is now fixed.

Embedded content

Fix a crash that could occur when strict scripts have cyclic require() dependencies.

Add an option to autocomplete to cause it to abort processing after a certain amount of time has elapsed.