Skip to content
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

Expand on a type (that defines a proc type) in error message #6608

Closed
dom96 opened this issue Oct 26, 2017 · 0 comments
Closed

Expand on a type (that defines a proc type) in error message #6608

dom96 opened this issue Oct 26, 2017 · 0 comments

Comments

@dom96
Copy link
Contributor

dom96 commented Oct 26, 2017

type
  AcceptCB = proc (s: string)

proc x(x: AcceptCB) =
  x()

x()

The error:

/private/tmp/aporia/a6.nim(5, 4) Error: type mismatch: got ()
but expected one of:
AcceptCB
@Araq Araq closed this as completed in 086efac Jul 14, 2020
Varriount pushed a commit that referenced this issue Jul 15, 2020
* fix #6608

* minor

* fix

* clean tests

* make testamnet happy

* again

* minor

* fix #13086
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant