-
-
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
ICE on explicit generic proc with dependent-typed argument #7008
Labels
Comments
AssertionError now with #head. Full stack trace:
|
It works for me on Nim devel v1.3.5. @RedBeard0531, can you confirm? |
@narimiran this fails: type Node[T] = object
val: T
# Compiles fine
proc concreteProc(s: Node[cstring]; key: s.T) = discard
# Also fine
proc implicitGenericProc1(s: Node; key: s.T) = discard
# still fine
proc explicitGenericProc1[T](s: Node[T]; key: T) = discard
# Internal Compiler Error!
proc explicitGenericProc2[T](s: Node[T]; key: s.T) = discard
let n = Node[int](val: 5)
implicitGenericProc1(n, 5) # works
explicitGenericProc1(n, 5) # works
explicitGenericProc2(n, 5) # doesn't |
With Nim devel 1.5.1, |
This should work though, reopening :) |
This was referenced Aug 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Repros on 0.17.2 and devel
The text was updated successfully, but these errors were encountered: