Page 6 of 6

Re: SUPER STRICT for LUA

Posted: Sun Dec 25, 2022 10:47 am
by ivan
Good news, everybody!
Super Strict can now detect duplicate values and arguments:

Code: Select all

for b, b in pairs(t) do
  -- duplicate lvariable 'b'
end
c, c = 1, 2 -- duplicate variable 'c'
function (d, d)
  -- duplicate argument 'd'
end
Due to the way that metatables work this new check will not trigger errors when using the dot operator (for example: a = {} a.b, a.b = 1, 2)