cmd/compile: compile error while using generics #63981
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
no
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Implement generic interfaces
compile err:
Cannot use '&genericsDo[T, E]{realDo: realDo}' (type *genericsDo[T, E]) as the type IGenericsDo[T, E] Type does not implement 'IGenericsDo[T, E]' need the method: Delete(...E) (info interface{}, err error) have the method: Delete(models ...interface{}) (info interface{}, err error)
What did you expect to see?
What did you see instead?
When I remove the inherited DO, it work.
The text was updated successfully, but these errors were encountered: