[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: parsing bug? (return statement)
- From: redpixel <redwiki.net@...>
- Date: Mon, 26 Dec 2005 20:30:03 +0900
if it exists another statements after "return", the parser raise error. I'm testing in 5.1 beta. but same as 5.1 alpha, 5.02 work5/6. this is simple example.
function test1()
return 1
aaaa = 1 -- error! expect "end"...
end
but parser passed this source.
function test2()
do
return 1
end
aaaa = 1
end -- parsed successfully
I think this is bug. please check this.