Skip to content

Commit

Permalink
revert test.lua and add CONST and NOTCONST test
Browse files Browse the repository at this point in the history
  • Loading branch information
meepen committed Jul 21, 2021
1 parent 91629d3 commit e4f089c
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions tests/test.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
local a, b = 1, 1
local t = {1, [false] = true, [true] = false}

t.a = "lmao"

print(t[1], t[true], t[false], t.a)
print(t[1], t[true], t[false], t.a)

local function a()
print(1)
end

local CONST, NOTCONST = 1, 2
do
a = 2
NOTCONST = 4
end
print(a)

print(CONST, NOTCONST)

a()

0 comments on commit e4f089c

Please sign in to comment.