]> Cypherpunks.ru repositories - gostls13.git/commit
go/types: remove qualification from type parameter strings
authorRobert Findley <rfindley@google.com>
Tue, 2 Nov 2021 23:49:15 +0000 (19:49 -0400)
committerRobert Findley <rfindley@google.com>
Thu, 4 Nov 2021 00:46:41 +0000 (00:46 +0000)
commite72d7150cb7f62edf6768ac5f33194d7f96443a1
treeca1beb4204548f53c0da911195a502d1af2db01b
parent1292e212416f5bca1f32d3ec0679b7dae97f6f1b
go/types: remove qualification from type parameter strings

Type parameters only exist within the scope of a type or function
declaration, so there is really no reason to package-qualify them. It is
also confusing to do so, as it makes their type string look like a
defined type.

Fixes #49215

Change-Id: I986c527e78d45f3cadd75bc3b244e23dabe707ee
Reviewed-on: https://go-review.googlesource.com/c/go/+/360938
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/api_test.go
src/go/types/builtins_test.go
src/go/types/typestring.go