Skip to content

go/types, types2: better error message for unsatisfied type constraint #57500

@griesemer

Description

@griesemer

The test case in src/internal/types/testdata/fixedbugs/issue57486.go reports the error

[2]any does not implement C2 ([2]any missing in int)

even though the [2]any is in the constraint (but not in the type set). Should provide a better error message.

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.release-blocker

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions