fix(class): private access in method calls

Maybe there's better ways, but if it works..?
This commit is contained in:
Linden
2024-04-18 23:19:09 +10:00
parent 75b7c2a724
commit dcdfe6e442

View File

@@ -85,7 +85,7 @@ function mixins.new(class, ...)
__index = function(self, index) __index = function(self, index)
local di = getinfo(2, 'n') local di = getinfo(2, 'n')
if di.namewhat ~= 'method' then return end if di.namewhat == 'local' then return end
return private[index] return private[index]
end, end,