-
-
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
uninformative Nim 2.2/devel Error: cannot instantiate H [type declared in /tmp/y.nim(2, 6)], got: <M | M>, but expected: <K>
error
#24644
Comments
Since generic instantiation uses sigmatch it's hard to produce the expected
|
Sure, I agree that would be a reasonable and useful approach. The main thing is to get some hint/clue of what modules or namespaces are providing these symbols, indeed. |
Description
y.nim
:g.nim
:u.nim
:It's of course easy to spot here, but this is a real issue with a codebase of more than 100k LoC across various libraries.
There are of course ways to try to instantiate the object in a way which will trigger a useful error message, but this isn't one.
Nim Version
Current Output
Expected Output
Known Workarounds
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: