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
Error: undeclared identifier: '|'
|
runnableExamples:
when defined(case1): # Error: undeclared identifier: '|' proc bar[T](t:T): bool = runnableExamples: type Foo = int | float true echo bar(0) when defined(case2): # ok proc bar(t:int): bool = runnableExamples: type Foo = int | float true echo bar(0) when defined(case3): # Error: undeclared identifier: '|' proc bar(t:typedesc): bool = runnableExamples: type Foo = int | float true echo bar(int)
EDIT : fixed case3 test EDIT: verified it all works!
The text was updated successfully, but these errors were encountered:
4cf704b
type T=int|float
Fix regression with runnableExamples in generic expr
6d45033
The examples should not enter the generic analysis at all. The regression was introduced in 4cf704b as a fix for nim-lang#8694. Fixes nim-lang#9130 Fixes nim-lang#8694
Successfully merging a pull request may close this issue.
EDIT : fixed case3 test
EDIT: verified it all works!
The text was updated successfully, but these errors were encountered: