]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] cmd/compile/internal/types2: remove TestIncompleteInterfaces (cleanup)
authorRobert Griesemer <gri@golang.org>
Wed, 4 Aug 2021 19:27:26 +0000 (12:27 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 5 Aug 2021 19:36:56 +0000 (19:36 +0000)
commitc5b6c36ddd0ecdee401c4e78da1addf64bdc6376
tree13478d2f46788b7a40b6d394a4196930731b0e9a
parentf14908d01b8c4832f9ad3939165d5eec969635e1
[dev.typeparams] cmd/compile/internal/types2: remove TestIncompleteInterfaces (cleanup)

TestIncompleteInterfaces is not useful anymore because interface
printing always shows the syntactic type structure of an interface.

Also remove the respective support code in interface printing and
simplify that code.

Move the newDefined and nopos support declarations unchanged into
api_test.go where they are used.

Updates #46167.

Change-Id: I23e303bc4ae4271912ba75f201bd2b7cd4a17b3e
Reviewed-on: https://go-review.googlesource.com/c/go/+/339832
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/api_test.go
src/cmd/compile/internal/types2/typestring.go
src/cmd/compile/internal/types2/typestring_test.go