]> Cypherpunks.ru repositories - gostls13.git/commit
go/types, types2: use identical missingMethod in both type checkers
authorRobert Griesemer <gri@golang.org>
Fri, 4 Feb 2022 01:34:43 +0000 (17:34 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 4 Feb 2022 23:42:58 +0000 (23:42 +0000)
commit7c9885def52a408532085a566eea107f31ad1556
treefde470df30ace5d0bbf8ab82f571f7e865f70e47
parentaadbfc30afe7be3bc8d90e8267e7c9ca2dff95f4
go/types, types2: use identical missingMethod in both type checkers

Further simplify and regularize Checker.missingMethod and use the
same code in both type checkers.

This enables case-folding lookup for go/types.

Adjusted test case that looks for alternative methods.

Change-Id: I5b8cc598c295c329ff93b1c65787cc6140f0900e
Reviewed-on: https://go-review.googlesource.com/c/go/+/382858
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/lookup.go
src/go/types/lookup.go
src/go/types/testdata/fixedbugs/issue50816.go2