]> Cypherpunks repositories - gostls13.git/commit
go/types: avoid infinite recursion in unification
authorRobert Griesemer <gri@golang.org>
Wed, 29 Sep 2021 03:42:45 +0000 (20:42 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 29 Sep 2021 15:12:05 +0000 (15:12 +0000)
commit3f224bbf9a52cf2e19cdd2ada4a6d7372cc70141
tree602dc51bccd1ca445e6da100f5bfbafbdbfad97d
parente180e2c27c3c3f06a4df6352386efedc15a1e38c
go/types: avoid infinite recursion in unification

This is an almost clean port of CL 352832 from types2 to go/types:
The nest files and unify.go where copied verbatim; unify.go was
adjusted with correct package name, a slightly different comment
was restored to what it was. The test files got adjustments for
error position. infer.go got a missing _Todo error code.

For #48619.
For #48656.

Change-Id: Ia1a2d09e8bb37a85032b4b7e7c7a0b08e8c793a5
Reviewed-on: https://go-review.googlesource.com/c/go/+/353029
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/go/types/infer.go
src/go/types/testdata/fixedbugs/issue48619.go2 [new file with mode: 0644]
src/go/types/testdata/fixedbugs/issue48656.go2 [new file with mode: 0644]
src/go/types/unify.go