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
Receivers in LHS will be nil when destructuring is used on table comprehensions. No error emitted by the compiler:
foo ="1 2 foobar"-- works as expected:
items =[ w for w in foo\gmatch("%S+")]{one, two, three}= items
-- all receivers nil:{one, two, three}=[ w for w in foo\gmatch("%S+")]
This contradicts other behavior where table comprehension expressions can be used instead of variable identifiers which contain tables.
The text was updated successfully, but these errors were encountered:
Receivers in LHS will be
nil
when destructuring is used on table comprehensions. No error emitted by the compiler:This contradicts other behavior where table comprehension expressions can be used instead of variable identifiers which contain tables.
The text was updated successfully, but these errors were encountered: