Cosmo/newtest.cosmo
2020-11-12 23:04:09 -06:00

15 lines
190 B
Plaintext

class test
function __init(self, x)
self.x = x
end
function print(self)
print(self.x)
return self.x
end
end
var t = test("hello")
print(t.print())