We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Test case:
const True {.booldefine.} = true type Foo = object a: int when True: b: int
Error: Error: constant expression expected
Error: constant expression expected
Workaround with static so tagging low priority.
static
const True {.booldefine.} = true type Foo = object a: int when static(True): b: int
The text was updated successfully, but these errors were encountered:
wondering if same root cause as #12929
EDIT: no because issue still there despite #12880 being fixed
Sorry, something went wrong.
Maybe this should be backported?
Successfully merging a pull request may close this issue.
Test case:
Error:
Error: constant expression expected
Workaround with
static
so tagging low priority.The text was updated successfully, but these errors were encountered: