]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: make TestIssue43124 match the go/types version
authorRobert Griesemer <gri@golang.org>
Thu, 29 Jun 2023 16:48:52 +0000 (09:48 -0700)
committerRobert Griesemer <gri@google.com>
Thu, 29 Jun 2023 18:29:51 +0000 (18:29 +0000)
commit2db31efdba131a411474608ebcf96cc964f8032b
tree548dda56f0aca5b57cf6dc8b859bf8a66727a9be
parent499458f7ca04087958987a33c2703c3ef03e27e2
cmd/compile/internal/types2: make TestIssue43124 match the go/types version

Replace the (flaky) types2.TestIssue43124 with the code of the
(stable) go/types version of this test.

While at it, replace a handful of syntax.Pos{} with the equivalent
nopos, to further reduce differences between the two versions of
the issues_test.go file.

For #61064.

Change-Id: I69f3e4627a48c9928e335d67736cb875ba3835fc
Reviewed-on: https://go-review.googlesource.com/c/go/+/507215
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/issues_test.go