• Matthew Dempsky's avatar
    cmd/compile/internal/gc: handle recursive interfaces better · 07de3465
    Matthew Dempsky authored
    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: 's avatarRobert Griesemer <gri@golang.org>
    07de3465
Name
Last commit
Last update
..
amd64 Loading commit data...
arm Loading commit data...
arm64 Loading commit data...
gc Loading commit data...
mips Loading commit data...
mips64 Loading commit data...
ppc64 Loading commit data...
s390x Loading commit data...
ssa Loading commit data...
syntax Loading commit data...
test Loading commit data...
x86 Loading commit data...