Skip to content

types2, go/types: self-referential type parameter list is not accepted #47796

Closed
@griesemer

Description

@griesemer

Example:

package p
type Eq[a Eq[a]] interface {
	Equal(that a) bool
}

produces

:2:13: Eq is not a generic type

Should this be permitted?

cc: @ianlancetaylor

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions