Skip to content

Commit

Permalink
primitive.lua: make one logical expression assigned to a local
Browse files Browse the repository at this point in the history
To mark the case when there is no undefined slot assignment
  • Loading branch information
Andrian Nord authored and Andrian Nord committed Jan 6, 2014
1 parent 4905925 commit d273057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/primitive.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function logical()

print ("The same if as expression")

a = ((x == 6) and print("Is six!")) or print("Whatever else!")
local a = ((x == 6) and print("Is six!")) or print("Whatever else!")

print ("Nested if")

Expand Down

0 comments on commit d273057

Please sign in to comment.