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
typeof(fn())
typeof(fn()) when fn returns void should be legal
when true: proc fn = discard type T1 = void # ok type T2 = typeof(fn()) # bug: Error: expression 'fn()' has no type (or is ambiguous)
Error: expression 'fn()' has no type (or is ambiguous)
works (and T2 is void)
devel 1.3.5 30c09e460778099633db084532672970954bb328
this causes un-necessary workarounds in generic code
The text was updated successfully, but these errors were encountered:
Duplicate: #7397
RFC: nim-lang/RFCs#508
(unless we want separate codepaths for type and typeof?)
Sorry, something went wrong.
ok; it's indeed dup of nim-lang/RFCs#508 ; however I think nim-lang/RFCs#508 can be fixed without having to do RFC nim-lang/RFCs#508
no, I didn't intend that
No branches or pull requests
typeof(fn())
when fn returns void should be legalExample
Current Output
Expected Output
Additional Information
this causes un-necessary workarounds in generic code
The text was updated successfully, but these errors were encountered: