I defined a type called int_b = int64 and defined a specific print format for 
it using $. It works within the module its defined in however when I attempt to 
print a int_b in another module I get this error message. I made sure to add 
the * so it would import. I'm likely making a stupid mistake but I am not sure 
what. thanks

here is the error message. this does not occur in the module its defined in 
though
    Error: type mismatch: got <Int_b>

but expected one of:

proc echo(x: varargs[typed, `$`])
    first type mismatch at position: 1 required type for x: varargs[typed] but 
expression 'b.player1' is of type: Int_b

here is the code func `$`*(i: Int_b): string = 
i.lis.mapIt(it.join("")).join("\n")``

Reply via email to