[dev.typeparams] go/types: don't modify Named.underlying in validType

This was fixed on dev.go2go in CL 240901, but accidentally omitted from
the merge.

Change-Id: I9020eb51dac4aa07d57c3de747d33ba84abb6386
Reviewed-on: https://go-review.googlesource.com/c/go/+/284254
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Trust: Robert Griesemer <gri@golang.org>
Trust: Robert Findley <rfindley@google.com>
This commit is contained in:
Rob Findley 2021-01-15 11:30:49 -05:00 committed by Robert Findley
parent f38f862417
commit 3e15bf7716

View file

@ -342,7 +342,6 @@ func (check *Checker) validType(typ Type, path []Object) typeInfo {
if tn == t.obj { if tn == t.obj {
check.cycleError(path[i:]) check.cycleError(path[i:])
t.info = invalid t.info = invalid
t.underlying = Typ[Invalid]
return t.info return t.info
} }
} }