]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] go/types: use comparable bit rather than ==() method
authorRob Findley <rfindley@google.com>
Tue, 3 Aug 2021 20:47:15 +0000 (16:47 -0400)
committerRobert Findley <rfindley@google.com>
Wed, 4 Aug 2021 11:06:24 +0000 (11:06 +0000)
commite0d09072123c40cfef3015be146b55e0d26a67dd
treebf0c59e19ee5da161e0b3ed36dc1fe3dcbd6b59f
parent18e0503724e64c3d55dbc705eb4f08be2fde1b32
[dev.typeparams] go/types: use comparable bit rather than ==() method

This is a port of CL 337354 to go/types, adjusted for the error
reporting API and to reposition a couple error messages in
issue47411.go2 (the go/types position is probably better).

A panic is also fixed in lookup.go when method lookup fails and static
== false. I'll send a fix for types2 in a separate CL.

For #47411

Change-Id: Icc48f03c3958695f581f10e8675c1f32434c424b
Reviewed-on: https://go-review.googlesource.com/c/go/+/339652
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/instantiate.go
src/go/types/interface.go
src/go/types/lookup.go
src/go/types/predicates.go
src/go/types/sizeof_test.go
src/go/types/testdata/check/issues.go2
src/go/types/testdata/fixedbugs/issue47411.go2 [new file with mode: 0644]
src/go/types/typeset.go
src/go/types/universe.go