Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go/types, types2: unions must not accept uninstantiated types #48083

Closed
griesemer opened this issue Aug 31, 2021 · 1 comment
Closed

go/types, types2: unions must not accept uninstantiated types #48083

griesemer opened this issue Aug 31, 2021 · 1 comment
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@griesemer
Copy link
Contributor

This code is accepted by mistake:

package p

type T[P any] struct{}

type _ interface{ int | T } // <<< expected error here for uninstantiated T
@griesemer griesemer added the NeedsFix The path to resolution is known, but the work has not been done. label Aug 31, 2021
@griesemer griesemer added this to the Go1.18 milestone Aug 31, 2021
@griesemer griesemer self-assigned this Aug 31, 2021
@gopherbot
Copy link
Contributor

Change https://golang.org/cl/346293 mentions this issue: cmd/compile/internal/types2: union terms must be instantiated

@golang golang locked and limited conversation to collaborators Jun 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

2 participants