diff options
| author | Robert Findley <rfindley@google.com> | 2021-08-30 17:40:45 -0400 |
|---|---|---|
| committer | Robert Findley <rfindley@google.com> | 2021-08-30 22:09:22 +0000 |
| commit | 7622e41c84fd9bb003a2d905b9f0545344842c3a (patch) | |
| tree | caee0ec05457483eeac0afdbd98230e3084be036 /src/cmd/compile/internal/noder | |
| parent | 3342aa5f51e1299e9d86307e2dbf429cd2aca987 (diff) | |
| download | go-7622e41c84fd9bb003a2d905b9f0545344842c3a.tar.xz | |
go/types, types2: add a test for invalid import of "init"
This error reporting code path did not have test coverage, and panics in
1.17 (filed as #48082).
Add a test that would have reproduced the panic, for both go/types and
cmd/compile/internal/types2.
Change-Id: Icd5f54f8407e4ab57d432f44a129ecf6b2755feb
Reviewed-on: https://go-review.googlesource.com/c/go/+/346309
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/noder')
0 files changed, 0 insertions, 0 deletions
