]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: clearer object string for type parameters
authorRobert Griesemer <gri@golang.org>
Thu, 4 Nov 2021 19:50:25 +0000 (12:50 -0700)
committerRobert Griesemer <gri@golang.org>
Sat, 6 Nov 2021 19:41:14 +0000 (19:41 +0000)
commitcfb3dc7710ba35d9932ba9f5242730a97f9ae603
tree521e8cc90d2ca87cb4c88b5ec0147b2993e7cd93
parent7ca772a5bc5d7f2a391f7f2a0febc54d84acb9d7
cmd/compile/internal/types2: clearer object string for type parameters

- print "type parameter" rather than just "type"
- print the type bound rather than the underlying type
- added an object string test

Change-Id: Ibb572ff35b74f2c6ccb27641154f096770541130
Reviewed-on: https://go-review.googlesource.com/c/go/+/361401
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/object.go
src/cmd/compile/internal/types2/object_test.go
src/cmd/compile/internal/types2/typestring_test.go