newbie needs help with error messages
the code:
gives error
what should I do?
gives error
what should I do?
@register_passable("trivial")
struct Item:
var name: StringLiteral
var qty: Int
fn __init__(inout self) -> Self:
self.name = "Unnamed"
self.qty = 0
fn main():
var item = Item()invalid call to '__init__': callee expects 1 argument, but 0 were specified