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
when true: import asyncdispatch # ok block: proc main(a: int|string)= proc bar(b: int|string) = echo b bar(a) main(1) block: proc main(a: int) : Future[void] {.async.} = proc bar(b: int): Future[void] {.async.} = echo b await bar(a) waitFor main(1) block: proc main(a: int) : Future[void] {.async.} = proc bar(b: int | string): Future[void] {.async.} = echo b await bar(a) waitFor main(1) block: # bug proc main(a: int|string) = proc bar(b: int): Future[void] {.async.} = echo b waitFor bar(a) main(1) # uncomment and it'll work, otherwise Error: invalid type: 'void' for var
Error: invalid type: 'void' for var
works
1.5.1 2b5841c root cause for #16741
The text was updated successfully, but these errors were encountered:
close nim-lang#16786
bb7baeb
close #16786 (#17598)
3f9c265
Successfully merging a pull request may close this issue.
Example
Current Output
Error: invalid type: 'void' for var
Expected Output
works
Additional Information
1.5.1 2b5841c
root cause for #16741
The text was updated successfully, but these errors were encountered: