• Robert Griesemer's avatar
    go/types: don't associate methods with alias type names · cf12fef5
    Robert Griesemer authored
    R=go1.11
    
    The existing code associated methods with receiver base type
    names before knowing if a type name denoted a locally defined
    type. Sometimes, methods would be incorrectly associated with
    alias type names and consequently were lost down the road.
    
    This change first collects all methods with non-blank names
    and in a follow-up pass resolves receiver base type names to
    valid non-alias type names with which the methods are then
    associated.
    
    Fixes #23042.
    
    Change-Id: I7699e577b70aadef6a2997e882beb0644da89fa3
    Reviewed-on: https://go-review.googlesource.com/83996Reviewed-by: 's avatarAlan Donovan <adonovan@google.com>
    cf12fef5
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...
VERSION Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...