aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/types2/unify.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2021-07-29 22:24:37 -0700
committerRobert Griesemer <gri@golang.org>2021-08-02 21:08:34 +0000
commitc3c19731a9dd128b5b81c9062416804a5a4893d2 (patch)
tree22d847f13ce74754f021f7a20aaf9334c40f22fd /src/cmd/compile/internal/types2/unify.go
parent156eeb40a6d918bcac82871af1b8e428a5414159 (diff)
downloadgo-c3c19731a9dd128b5b81c9062416804a5a4893d2.tar.gz
go-c3c19731a9dd128b5b81c9062416804a5a4893d2.zip
[dev.typeparams] cmd/compile/internal/types2: move instance.go contents into named.go (cleanup)
This just moves the code around the instance type into named.go where it belongs. While at it, also removed some left-over references to instance types (which are gone). Removed instance.go. Change-Id: I302a86ca50675b0be54f6138fa47f48f00f9c98f Reviewed-on: https://go-review.googlesource.com/c/go/+/338469 Trust: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
Diffstat (limited to 'src/cmd/compile/internal/types2/unify.go')
-rw-r--r--src/cmd/compile/internal/types2/unify.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/cmd/compile/internal/types2/unify.go b/src/cmd/compile/internal/types2/unify.go
index 7221356354..aa9a23d243 100644
--- a/src/cmd/compile/internal/types2/unify.go
+++ b/src/cmd/compile/internal/types2/unify.go
@@ -459,9 +459,6 @@ func (u *unifier) nify(x, y Type, p *ifacePair) bool {
// are identical if they originate in the same declaration.
return x == y
- // case *instance:
- // unreachable since types are expanded
-
case nil:
// avoid a crash in case of nil type