mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[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:
parent
f38f862417
commit
3e15bf7716
1 changed files with 0 additions and 1 deletions
|
|
@ -342,7 +342,6 @@ func (check *Checker) validType(typ Type, path []Object) typeInfo {
|
|||
if tn == t.obj {
|
||||
check.cycleError(path[i:])
|
||||
t.info = invalid
|
||||
t.underlying = Typ[Invalid]
|
||||
return t.info
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue