test_conf.nim(7, 20) Error: Invalid node kind nnkInfix for macros.`$`
Reproduce snippet:
import
confutils
type
ExporterCmd* = enum
exportCommand =
"This multi " & # This fails
"line fails"
printCommand =
"""Multi lines with these
triple quoted strings does work"""
ExporterConf* = object
case cmd* {.
command
defaultValue: exportCommand .}: ExporterCmd
of exportCommand:
discard
of printCommand:
discard
when isMainModule:
let config = ExporterConf.load()
Compile error:
Reproduce snippet: