]> Cypherpunks repositories - gostls13.git/commit
go/types: better error for type assertion/switch on type parameter value
authorRobert Findley <rfindley@google.com>
Tue, 16 Nov 2021 16:24:22 +0000 (11:24 -0500)
committerRobert Findley <rfindley@google.com>
Wed, 17 Nov 2021 14:10:29 +0000 (14:10 +0000)
commit4083a6f3776487e707d4c56c63b1d7dbabb01fb0
tree2aa36399fe854b82056fcd94e259da2b8dc4d356
parent1d004fa2015d128acf6302fc74b95f6a36c35680
go/types: better error for type assertion/switch on type parameter value

This is a port of CL 363439 from types2 to go/types.

Change-Id: Ic71871874345e1d0a4a42703e3673aadd11f2bfc
Reviewed-on: https://go-review.googlesource.com/c/go/+/364378
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/expr.go
src/go/types/stmt.go
src/go/types/testdata/check/typeparams.go2