using parameters which were List method names caused chaos

This commit is contained in:
steve donovan 2013-03-25 10:12:20 +02:00
parent a7b01abd03
commit 0706681e72
1 changed files with 4 additions and 3 deletions

View File

@ -700,7 +700,7 @@ end
function Item:type_of_param(p)
local mods = self.modifiers[self.parameter]
if not mods then return '' end
local mparam = mods[p]
local mparam = rawget(mods,p)
return mparam and mparam.type or ''
end
@ -710,8 +710,9 @@ function Item:type_of_ret(idx)
end
function Item:subparam(p)
if self.subparams[p] then
return self.subparams[p],p
local subp = rawget(self.subparams,p)
if subp then
return subp,p
else
return {p},nil
end