We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
proc p*(x: char|int = 'a') = discard when defined(a): p() # works elif defined(b): p('a') # works elif defined(c): p(1) # Error: type mismatch: got (char) but expected 'int'