-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
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
Make "required type for cb: Callback" error point me toward fixing the problem #13539
Labels
Comments
alaviss
added a commit
to alaviss/Nim
that referenced
this issue
Apr 21, 2020
This let us see the definition of `Callback` in docs, which is required to even make use of asyncdispatch. Ref nim-lang#13539.
Araq
pushed a commit
that referenced
this issue
Apr 21, 2020
This let us see the definition of `Callback` in docs, which is required to even make use of asyncdispatch. Ref #13539.
Error message is now:
The reason is shown at the bottom, the calling convention is different. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Compiling this program produces the following error:
Compiler error:
As an inexperienced Nim user, though, I don't know in what way my proc doesn't meet the requirements to be a
Callback
.It would be nice if the definition of
Callback
was included in the error output. Or it would be nice if the documentation foraddEvent
included a link to the definition ofCallback
I should have tried on a newer Nim version, but it's bedtime:
The text was updated successfully, but these errors were encountered: