Skip to content

Commit

Permalink
[dev.typeparams] runtime/race: make test compatible with types2
Browse files Browse the repository at this point in the history
types2 correctly distinguishes variable assignment from use even
within function literals. Whatever the outcome of #3059, the test
cases in runtime/race need to be fixed to accomodate that.

Change-Id: Ibe3547f07b681ff41225caabaf050872a48c98d1
Reviewed-on: https://go-review.googlesource.com/c/go/+/325030
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
  • Loading branch information
mdempsky committed Jun 5, 2021
1 parent 246a557 commit 4e001a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/runtime/race/output_test.go
Expand Up @@ -148,7 +148,7 @@ exit status 66
package main
func main() {
done := make(chan bool)
x := 0
x := 0; _ = x
go func() {
x = 42
done <- true
Expand All @@ -162,7 +162,7 @@ func main() {
package main
func main() {
done := make(chan bool)
x := 0
x := 0; _ = x
go func() {
x = 42
done <- true
Expand All @@ -178,7 +178,7 @@ func main() {
package main
func main() {
done := make(chan bool)
x := 0
x := 0; _ = x
go func() {
x = 42
done <- true
Expand Down

0 comments on commit 4e001a8

Please sign in to comment.