Skip to content

go/types,types2: cycles through unions are not detected #48582

@findleyr

Description

@findleyr

The following invalid code type-checks cleanly:

type N interface {
  int | N
}

We need to scan Unions when detecting cycles (Checker.validType).

CC @griesemer

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions