]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: handle unbound type parameters in switch (cleanup)
authorRobert Griesemer <gri@golang.org>
Tue, 28 Feb 2023 17:43:36 +0000 (09:43 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 1 Mar 2023 21:23:47 +0000 (21:23 +0000)
commit052a36ccbe698b5f2be9ac097fc2403428f200d5
tree98b9d5c1d2c4a3444c9894596273cbebb143a0ca
parent4eb3aea2b5c53a66ae5dddc26afaea36e6c18878
go/types, types2: handle unbound type parameters in switch (cleanup)

This simply moves the special handling for unbound type parameters
into the switch (which already looks for type parameters).

Change-Id: I2d6d22f3fdffc443065c3681a442288cd1d375ef
Reviewed-on: https://go-review.googlesource.com/c/go/+/472115
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/unify.go
src/go/types/unify.go