Skip to content

cmd/go2go: missing type cycle error #39938

Closed
@griesemer

Description

@griesemer
type base(type T) struct{
        pointer T
}

type foo struct { // <<< should get a cycle error here
        _ (base(foo))
}

type foo2 struct { // <<< correctly reporting illegal cycle in declaration of foo2
	_ struct{
       		pointer foo2
	}
}

Found as part of #39901.

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.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions