mirror of https://github.com/arendst/Tasmota.git
13 lines
200 B
Python
13 lines
200 B
Python
|
# CLOSE opcode test
|
||
|
var gbl
|
||
|
def func1()
|
||
|
var a = 'func1_a'
|
||
|
def func2()
|
||
|
return a
|
||
|
end
|
||
|
gbl = func2
|
||
|
return 400000 + 500
|
||
|
end
|
||
|
assert(func1() == 400500)
|
||
|
assert(gbl() == 'func1_a')
|