go/types,cmd/compile/internal/types2: pointer to generic type can be used in a type switch without instantiation #48008
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Only in tip
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
// main.go
gotip tool compile main.go
What did you expect to see?
A compilation error because
case *Foo:
is used without instantiation.What did you see instead?
The compiler only complains about
case Foo:
main.go:12:7: cannot use generic type Foo[S interface{}] without instantiation
cc: @griesemer @mdempsky @findleyr
The text was updated successfully, but these errors were encountered: