You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
need change to type F = proc (x: int){.nimcall.} , the F proc type without call conversation is closure, so it doesn't match, I know the error message is not obvious.
What happened?
I was trying to have a function which uses both procedures and varargs, but it refused to implicitly convert
works but
complains that the example F's are not actually F's
I can manually convert them by doing
but note that both of these work, proving implicit conversion is allowed in other cases
Nim Version
Nim Compiler Version 1.6.6 [Linux: amd64]
Compiled at 2022-05-05
Copyright (c) 2006-2021 by Andreas Rumpf
git hash: 0565a70
active boot switches: -d:release
Current Standard Output Logs
No response
Expected Standard Output Logs
No response
Possible Solution
Currently, I am using the last code snippet there as a workaround, but it would be nice if the implicit conversion would be consistent.
Additional Information
Thank you for the nice form for bug reports :)
The text was updated successfully, but these errors were encountered: