]> Cypherpunks.ru repositories - gostls13.git/commit
go/types: simplify under() and fix a crash
authorRobert Findley <rfindley@google.com>
Thu, 18 Nov 2021 00:20:52 +0000 (19:20 -0500)
committerRobert Findley <rfindley@google.com>
Thu, 18 Nov 2021 02:15:36 +0000 (02:15 +0000)
commit2463b4fcafbd59998ea4c81b0fd91a697ad02c15
treef31df8f1585b90d826875107187420e1882dcb87
parentb95bff0318150e0b2869079bf2c0068fb4bcb17c
go/types: simplify under() and fix a crash

This is a port of CL 363665 from types2 to go/types.

Change-Id: I20c4e20ab97f1e4de66a29095dc4a9b160810fe5
Reviewed-on: https://go-review.googlesource.com/c/go/+/364897
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/lookup.go
src/go/types/testdata/check/cycles.src
src/go/types/type.go
src/go/types/typexpr.go