]> Cypherpunks.ru repositories - gostls13.git/commit
go/types, types2: make sure info recording is executed in test runs
authorRobert Griesemer <gri@golang.org>
Thu, 20 Jul 2023 21:00:20 +0000 (14:00 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 20 Jul 2023 21:16:48 +0000 (21:16 +0000)
commit7b625d1f65a6224968d8668c1ae1b0730dabb605
treeccf7bb4a3d399cf14bc0d6447c4a66f7b373c494
parent57e2eb64ebdd441356eb3fb57bc06636cbfa58c0
go/types, types2: make sure info recording is executed in test runs

Issue #61486 causes a compiler crash but is not detected when running
stand-alone type-checker tests because no types are recorded.

Set up Config.Info map with all maps when when running local tests
so that type/object recording code is executed during local tests.

For #61486.

Change-Id: I8eb40c8525dac3da65db0dc7e0e654842713b9a9
Reviewed-on: https://go-review.googlesource.com/c/go/+/511657
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/types2/check_test.go
src/go/types/check_test.go