go/src/cmd/compile
Matthew Dempsky 07de3465be cmd/compile/internal/gc: handle recursive interfaces better
Previously, we handled recursive interfaces by deferring typechecking
of interface methods, while eagerly expanding interface embeddings.

This CL switches to eagerly evaluating interface methods, and
deferring expanding interface embeddings to dowidth. This allows us to
detect recursive interface embeddings with the same mechanism used for
detecting recursive struct embeddings.

Updates #16369.

Change-Id: If4c0320058047f8a2d9b52b9a79de47eb9887f95
Reviewed-on: https://go-review.googlesource.com/38391
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
2017-03-21 01:56:25 +00:00
..
internal cmd/compile/internal/gc: handle recursive interfaces better 2017-03-21 01:56:25 +00:00
doc.go cmd/compile: document -l in godoc 2016-05-09 19:06:53 +00:00
fmt_test.go cmd/compile: remove ProgInfo tables 2017-03-20 23:29:51 +00:00
main.go cmd/compile: eliminate direct uses of gc.Thearch in backends 2017-03-17 22:10:53 +00:00