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
{{ message }}
Repository navigation
LuaMultiReturn returns all values even when indexed with [0] #1411
I expected that foo would have transpiled to (notice parentheses):
functionfoo(str)
return (string.gsub(str, ".", "*"))
end
But, it clearly doesn't and therefore leads to multiple returns, because string.gsub also returns the amount of replacements as a secondary return value, which invalidates the specified return type : string of the foo... It works fine in case of bar and baz since they make use of a variable.
Activity
[-]A small bug related to LuaMultiReturn[/-][+]LuaMultiReturn returns all values even when indexed with [0][/+]Fixed multi returning all values
Fixed multi returning all values (#1428)