• Robert Griesemer's avatar
    go/types: extend cycle detection past simple type cycles · d8a1465c
    Robert Griesemer authored
    This change improves upon cycle detection by taking into account
    cycles involving constants, variables, _and_ types. All new code
    (except for the additional tests) is guarded by the useCycleMarking
    (internal) flag and thus can be disabled on short notice if it
    introduced new problems. (The intent is to remove this flag shortly
    after 1.11 is released.)
    
    The test suite has been extended with various additional (and mostly
    esoteric) test cases which now correctly report cycles. A handful of
    existing test cases now report additional errors, but those are mostly
    esoteric cases. Overall, this is an improvement over the status quo.
    
    Fixes #8699.
    For #20770.
    
    Change-Id: I6086719acd0d5200edca4a3dbe703d053496af31
    Reviewed-on: https://go-review.googlesource.com/116815
    Run-TryBot: Robert Griesemer <gri@golang.org>
    Reviewed-by: 's avatarAlan Donovan <adonovan@google.com>
    d8a1465c
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...