We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
type Node[T] = object val: T proc genericProc(s: Node; key: s.T) = discard # body doesn't matter proc explicitGenericProc[T](s: Node[T]; key: T) = discard # body doesn't matter proc concreteProc(s: Node[cstring]; key: s.T) = discard # body doesn't matter var strs: Node[cstring] concreteProc(strs, "string") # string converts to cstring explicitGenericProc(strs, "string") # still converts genericProc(strs, "string") # doesn't convert: COMPILE ERROR
The text was updated successfully, but these errors were encountered:
#7008 was discovered trying to make a minimal repro for this. #7006 may be related.
Sorry, something went wrong.
Works in 2.2, likely same fix as #7006
No branches or pull requests
The text was updated successfully, but these errors were encountered: