-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#245 when lowering generic for statement add locals from the for body
- Loading branch information
1 parent
15094f3
commit bc1b6b8
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
-- source https://github.com/LuaJIT/LuaJIT-test-cleanup/blob/master/test/lang/andor.lua | ||
|
||
do --- smoke | ||
local x = ((1 or false) and true) or false | ||
assert(x == true) | ||
end | ||
|
||
print '74 Ok' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
local values = {} | ||
for k,v in pairs({ name='Dibyendu', surname='Majumdar' }) do | ||
local key = k | ||
local value = v | ||
values[key] = value | ||
end | ||
|
||
assert(values.name == 'Dibyendu') | ||
assert(values.surname == 'Majumdar') | ||
|
||
print '75 Ok' |