Skip to content

cmd/go2go: embedded types ignored in interface implementation #40199

@JavierZunzunegui

Description

@JavierZunzunegui

This is not a generics proposal, but reporting a bug in the generics branch. First presented in golang-nuts.

What version of Go are you using (go version)?

generics branch (from https://go2goplay.golang.org/)

Does this issue reproduce with the latest release?

No, just generics branch

What operating system and processor architecture are you using (go env)?

N/A (in https://go2goplay.golang.org/)

What did you do?

Assigned a generic type to an interface satisfied by a struct embedded in it.
https://go2goplay.golang.org/p/fOJIhgnbOxC

What did you expect to see?

It would implement the interface, and compile.

What did you see instead?

It doesn't implement the interface, and therefore doesn't compile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.genericsIssue is related to generics

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions