Cosmo/newtest.cosmo

15 lines
190 B
Plaintext
Raw Normal View History

2020-11-13 05:04:09 +00:00
class test
function __init(self, x)
self.x = x
end
2020-11-06 01:53:55 +00:00
2020-11-13 05:04:09 +00:00
function print(self)
print(self.x)
return self.x
end
2020-11-06 01:53:55 +00:00
end
2020-11-13 05:04:09 +00:00
var t = test("hello")
print(t.print())