aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2018-05-02 10:12:38 -0700
committerRobert Griesemer <gri@golang.org>2018-05-02 17:36:17 +0000
commit0dcdbc772e62bf76b4468c288372b255dd18f4d8 (patch)
tree5c570a0e74f29250e69f57da68c86adf50ddf937 /src/testing/testing.go
parent73c7378e4d6e6b86505ac0fb2ce63d2a3a5be329 (diff)
downloadgo-0dcdbc772e62bf76b4468c288372b255dd18f4d8.tar.xz
go/types: fix internal documentation and strengthen assumptions
Imported (incl. dot-imported) objects are always in file scope, never in package scope. Fix misleading comment. Package-scope declared objects must have objMap entry by construction (of that map). Remove unnecessary check and corresponding misleading comment. Found while investigating solutions for @23203. Change-Id: Idadfdd1576681ae56e11daa27bdcee2c73733c41 Reviewed-on: https://go-review.googlesource.com/110916 Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src/testing/testing.go')
0 files changed, 0 insertions, 0 deletions