diff --git a/examples/test.cosmo b/examples/test.cosmo index e7fa530..3fc3d65 100644 --- a/examples/test.cosmo +++ b/examples/test.cosmo @@ -6,7 +6,7 @@ end // instance of test let obj = test() -test.__index = function(self, key) +test.__index = func(self, key) print("__index called!") if (key == "lol") then return 9001