-
Notifications
You must be signed in to change notification settings - Fork 412
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
deepcopy: val.DeepCopyinterface undefined #50
Comments
I understand why now. Interfaces must implement type FooSpec struct {
Parameters map[string]P
}
type P interface {
DeepCopyP() P
} |
But |
Yes, I created a dummy type because I couldn't think of a better way. |
Me too, currently I manually replace |
Hi, I found a workaround to solve this issue, anyway it's works.
If you define your own DeepCopyInfo in types.go, zz_generated.deepcopy.go will not auto-generate this function. |
The following types:
yield the following code:
which yields the following compiler error:
val.DeepCopyinterface undefined (type interface {} is interface with no methods
The text was updated successfully, but these errors were encountered: