Skip to content

cmd/compile, go/parser: cannot parse certain constraint literals in generic types #49175

@griesemer

Description

@griesemer

The following generic type declaration cannot be parsed:

package p
type _[_ []t]t // syntax error: unexpected ], expecting operand

Not a release blocker because the typical

type _[_ ~[]t]t

is accepted.

See also #49174 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions