-
Notifications
You must be signed in to change notification settings - Fork 207
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
Feature request: hints for pointer vs struct in value groups #184
Comments
Ah, good catch. |
If anyone wants to get their hands dirty with dig, this should be fun to implement. It's all contained in newErrMissingType. |
Hi. Been trying to implement this is in newErrMissingType as suggested by @abhinav but the problem, as I've described in #389, is that this method is never called when you don't provide any constructors for a value group. Should we add a check for no constructors for value groups? Otherwise we'll need to go further up the call stack to check for this. |
I do think that this would be a useful check to add, but my concerns are:
I think if we do add this, we should probably gate it behind an option, |
We do a great job hinting when you provide a struct instead of a pointer to a struct, or the other way around. However, this magic does not appear to extend all the way to value groups.
I was stumped by a test:
This did not work because the value group contains slices of transport.Procedure structs, not pointers thereto.
Would be great if the Fx output hinted that it would populate the ProcedureLists were it without the pointer indirection.
The text was updated successfully, but these errors were encountered: