]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] go/types: must not import a package called "init"
authorRob Findley <rfindley@google.com>
Mon, 8 Feb 2021 23:24:13 +0000 (18:24 -0500)
committerRobert Findley <rfindley@google.com>
Tue, 9 Feb 2021 14:00:14 +0000 (14:00 +0000)
commit493363ccff354ab5ed133f6d5fac942ba6cc034a
tree78d2a43017e05c7b9379caea28d0da096f5c04f3
parentc48d1503ba5d0f74bbc5cae5036bf225c6823a44
[dev.regabi] go/types: must not import a package called "init"

This is a port of CL 287494 to go/types. The additional checks in
test/fixedbugs are included, though they won't be executed by go/types.
Support for errorcheckdir checks will be added to go/types in a later
CL.

Change-Id: I37e202ea5daf7d7b8fc6ae93a4c4dbd11762480f
Reviewed-on: https://go-review.googlesource.com/c/go/+/290570
Reviewed-by: Robert Griesemer <gri@golang.org>
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/go/types/resolver.go
src/go/types/testdata/importdecl0/importdecl0a.src
test/fixedbugs/issue43962.dir/a.go [new file with mode: 0644]
test/fixedbugs/issue43962.dir/b.go [new file with mode: 0644]
test/fixedbugs/issue43962.go [new file with mode: 0644]