]> Cypherpunks repositories - gostls13.git/commit
go/types: detect constraint type inference cycles
authorRobert Findley <rfindley@google.com>
Wed, 8 Sep 2021 22:16:36 +0000 (18:16 -0400)
committerRobert Findley <rfindley@google.com>
Thu, 9 Sep 2021 12:56:20 +0000 (12:56 +0000)
commit9e1eea6f8b0d0266c481df5bc3c808defeaa6f44
treee23fe7af2e3195bd67144cb87d99ff65a149b856
parentb86e8dd0f3a27bc9577690523c9feeb25593bec7
go/types: detect constraint type inference cycles

This is a port of CL 347300 to go/types. The test was adjusted to match
the differing error positioning in go/types: errors are placed on the
ast.CallExpr.Fun, rather than the Lparen.

Change-Id: I3dee5d7d75bae18817cc1f04ab0d357d3a6a8198
Reviewed-on: https://go-review.googlesource.com/c/go/+/348689
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/infer.go
src/go/types/testdata/fixedbugs/issue48136.go2 [new file with mode: 0644]