-
Notifications
You must be signed in to change notification settings - Fork 810
Open
Labels
Description
Hi,
When using a message which contains a message with a oneof
variable and using the setting to generate compare methods, the generated interface for the variable does not have the Compare() function generated as part of the interface.
Here is a gist which reproduces the error:
https://gist.github.com/johanbrandhorst/783e0908940a2f81d7aef7b1ac93472e
The offending line is my.pb.go:44:
type isValue_Type interface {
isValue_Type()
}
Should be
type isValue_Type interface {
isValue_Type()
Compare(interface{}) int
}