I didn't test and never used the oop library but you are probably missing the
public export marker `*`
import oop
class MyClass:
var
value*: int
method init*(value: int){.base.}=
self.value = value
method print*{.base.}=
echo self.value
Run
- OOP macro - problems with import sayol
- Re: OOP macro - problems with import mratsim
