Closed shimamura-sakura closed 7 months ago
Version: release 0.3
This segfaults:
type A object: func b(self): pass
Removing self makes it don't crash.
self
Also, this doesn't segfault:
type A object: var i int func b(self): pass
I guess one shouldn't declare methods with self inside an object?
That's correct, it used to require self as a param but now you just use self inside the body. The fact that it's segfaulting for that is a bug, it should be a compile error instead.
Version: release 0.3
This segfaults:
Removing
self
makes it don't crash.Also, this doesn't segfault:
I guess one shouldn't declare methods with
self
inside an object?