]> Cypherpunks repositories - gostls13.git/commit
go/types: postpone interface method type comparison to the end
authorRobert Griesemer <gri@golang.org>
Fri, 23 Aug 2019 00:03:30 +0000 (17:03 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 26 Aug 2019 16:36:30 +0000 (16:36 +0000)
commit29d3c569e00ab46075dc9ab0520ef7a1a0fc91b3
treef9edb0083d1c215ae84da7caa80cf474dd8b0940
parent82d6e2eab8ea12962f2ad5f1d446350a7572d57c
go/types: postpone interface method type comparison to the end

Introduce a new list of final actions that is executed at the
end of type checking and use it to collect method type comparisons
and also map key checks.

Fixes #33656.

Change-Id: Ia77a35a45a9d7eaa7fc3e9e19f41f32dcd6ef9d9
Reviewed-on: https://go-review.googlesource.com/c/go/+/191418
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/types/check.go
src/go/types/testdata/cycles2.src
src/go/types/type.go
src/go/types/typexpr.go