TeslaCloud / flux-ce

Flux Community Edition (CE); A free and open-source Garry's Mod gamemode framework.
https://f.teslacloud.net
MIT License
26 stars 18 forks source link

fix class super #53

Closed kithf closed 4 years ago

kithf commented 4 years ago

'super' doesn't work properly

e.g.:

class "A"
A.a = "a"
A.init = function(self, arg)
 print(arg, self.a)
end

class "B" extends "A"
B.a = "b"

test = B.new "arg" --> nil, b
-- expected: arg, b