-
-
Notifications
You must be signed in to change notification settings - Fork 184
Closed
Labels
Description
Using a type alias for a LuaIterable that iterates through LuaMultiReturn makes the compiler not recognize it as a LuaMultiReturn.
The code:
type IterableAlias = LuaIterable<LuaMultiReturn<[number, number]>>;
declare const iterable: IterableAlias;
for (const [a, b] of iterable) {}Outputs:
for ____value in iterable do
local a = ____value[1]
local b = ____value[2]
endWhen it should instead output:
for a, b in iterable do
endHere's a playground link with some examples.
Reactions are currently unavailable