mirror of
https://github.com/golang/go
synced 2024-11-24 01:50:11 -07:00
go/types, types2: remove duplicate resolve call
Change-Id: I8afe8bf6304b6a3645bbd8d4d19f152862c58725 Reviewed-on: https://go-review.googlesource.com/c/go/+/351119 Trust: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
parent
d7e3e442fe
commit
2f87b9c942
@ -224,7 +224,6 @@ func (subst *subster) typ(typ Type) Type {
|
||||
return named
|
||||
}
|
||||
|
||||
t.orig.resolve(subst.env)
|
||||
// Create a new instance and populate the environment to avoid endless
|
||||
// recursion. The position used here is irrelevant because validation only
|
||||
// occurs on t (we don't call validType on named), but we use subst.pos to
|
||||
|
@ -210,7 +210,6 @@ func (subst *subster) typ(typ Type) Type {
|
||||
return named
|
||||
}
|
||||
|
||||
t.orig.resolve(subst.env)
|
||||
// Create a new instance and populate the environment to avoid endless
|
||||
// recursion. The position used here is irrelevant because validation only
|
||||
// occurs on t (we don't call validType on named), but we use subst.pos to
|
||||
|
Loading…
Reference in New Issue
Block a user