Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of & in the description of the command enum values gives compile error #59

Open
kdeme opened this issue Oct 14, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@kdeme
Copy link
Contributor

kdeme commented Oct 14, 2022

Compile error:

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()
@jangko jangko added the bug Something isn't working label Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants