16 Replies
New here, but I don't get that error when running it.
this is what I get
Weird
mojo --version
mojo 0.2.1 (64d14e85)
I did in fact not have 0.2.1 installed
Sorry
do you have a newer version?
Older
Just ran the install function again
does it download the 350MB or so or is it smart about it?
Heh, I dunno how much it downloaded
This is what I got now:
error:
Just FYI, when I get rid of the parens for
var item = Item()
it complains about something else error: return expected at end of function with results
Which I assume is what you're after?Congrats @superfes, you just advanced to level 1!
I think the parens are necessary and should call the
__init__
with "self" being providedCongrats @ct, you just advanced to level 2!
Ok. https://docs.modular.com/mojo/programming-manual.html#register_passable-struct-decorator Notice that
__init__
does not need 'self'