Skip to content

Commit

Permalink
Add test for destructuring with custom variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Sainan committed Apr 10, 2023
1 parent b5e740a commit 3980f5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/basic.pluto
Original file line number Diff line number Diff line change
Expand Up @@ -1002,11 +1002,13 @@ do
end
do
-- Temporary table
local { i, f } = {
local { i, str = s } = {
i = 69,
s = "Hello"
}
assert(i == 69)
assert(s == nil)
assert(str == "Hello")
end
do
-- Temporary table, single field
Expand Down

0 comments on commit 3980f5f

Please sign in to comment.