i-love-falcom / lua-checker

Automatically exported from code.google.com/p/lua-checker
Other
0 stars 1 forks source link

lua_simplifer incorrectly converts table method with 0 parameters #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create bad.lua file with these contents
tbl = { };
function tbl:func()
end

2. Run lua_simplier bad.lua

What is the expected output? 
tbl = {};
tbl['func'] = function(self)
end;

What do you see instead?
tbl = {};
tbl['func'] = function(self, )
end;

What version of the product are you using? On what operating system?
SVN rev7
Windows XP SP3
CYGWIN_NT-5.1 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin

Original issue reported on code.google.com by jpsx...@gmail.com on 31 Mar 2009 at 8:46