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
on
Module A:
macro ona*(body: untyped): untyped = discard macro on*(body: untyped): untyped = discard
Module B:
import modulea ona: echo "a" # no problem on: echo "b" # Error: expression 'echo ["b"]' has no type (or is ambiguous)
Changing the name of the macro from on fixes the problem.
The text was updated successfully, but these errors were encountered:
For off the same.
off
Sorry, something went wrong.
isn't this because
Nim/lib/system.nim
Line 56 in a39b989
Yeah, but I wonder why overloading resolution picks up consts. :-)
consts
It finds system.on first then calls semIndirectOp which calls semOpAux which typechecks all the arguments.
system.on
semIndirectOp
semOpAux
Maybe other symbols should also call semDirectOp/semMagic the same way ambiguous type symbols do
semDirectOp
semMagic
No branches or pull requests
Module A:
Module B:
Changing the name of the macro from
on
fixes the problem.The text was updated successfully, but these errors were encountered: