-
-
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
BUG: can't refer to generic type in return type #8551
Comments
Link to RFC nim-lang/RFCs#44 |
Early generic evaluation bug again, delegating to type works because it's a macro call which is delayed import typetraits
type DistinctBase[T] = distinctBase(T)
func distinctBase*[T](a: T): DistinctBase[T] = distinctBase(T)(a)
type T = distinct int
discard distinctBase(T(0)) Tons of issues are related but I can only link #22607 right now |
metagn
added a commit
to metagn/Nim
that referenced
this issue
Jan 9, 2024
fixes nim-lang#8406, fixes nim-lang#8551, refs nim-lang#8545, refs nim-lang#22607
metagn
added a commit
to metagn/Nim
that referenced
this issue
Jul 25, 2024
fixes nim-lang#8406, fixes nim-lang#8551, refs nim-lang#8545, refs nim-lang#22607
metagn
added a commit
to metagn/Nim
that referenced
this issue
Aug 21, 2024
fixes nim-lang#8406, fixes nim-lang#8551, refs nim-lang#8545, refs nim-lang#22607
metagn
added a commit
to metagn/Nim
that referenced
this issue
Aug 22, 2024
fixes nim-lang#8406, fixes nim-lang#8551, refs nim-lang#8545, refs nim-lang#22607
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
reduced a bit from PR #8531 where I'm forced to using
auto
return instead of explicit typeseems related but not same as #8545
The text was updated successfully, but these errors were encountered: