# That was the missing piece of the puzzle to get it to resolv: import module1 var x = CodeBlock().Token method `$`(x: Token): string = "Bare token" method `$`(x: CodeBlock): string = let cbDollar: proc(x: CodeBlock): string = module1.`$` result = cbDollar(x) result &= "My code block" echo x