Skip to content

Commit

Permalink
fix(class): private access in method calls
Browse files Browse the repository at this point in the history
Maybe there's better ways, but if it works..?
  • Loading branch information
thelindat committed Apr 18, 2024
1 parent 75b7c2a commit dcdfe6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imports/class/shared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function mixins.new(class, ...)
__index = function(self, index)
local di = getinfo(2, 'n')

if di.namewhat ~= 'method' then return end
if di.namewhat == 'local' then return end

return private[index]
end,
Expand Down

0 comments on commit dcdfe6e

Please sign in to comment.