Skip to content

cmd/compile: bad error message for failing constraint type inference #57096

@griesemer

Description

@griesemer
package p

func f[S []E, E any]() {}

var _ = f[int] // ERROR S does not match []E

The error should be: int does not match []E.

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.compiler/runtimeIssues related to the Go compiler and/or runtime.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions