Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4e001a8

Browse files
committedJun 5, 2021
[dev.typeparams] runtime/race: make test compatible with types2
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 <[email protected]> Run-TryBot: Matthew Dempsky <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Robert Griesemer <[email protected]>
1 parent 246a557 commit 4e001a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/runtime/race/output_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ exit status 66
148148
package main
149149
func main() {
150150
done := make(chan bool)
151-
x := 0
151+
x := 0; _ = x
152152
go func() {
153153
x = 42
154154
done <- true
@@ -162,7 +162,7 @@ func main() {
162162
package main
163163
func main() {
164164
done := make(chan bool)
165-
x := 0
165+
x := 0; _ = x
166166
go func() {
167167
x = 42
168168
done <- true
@@ -178,7 +178,7 @@ func main() {
178178
package main
179179
func main() {
180180
done := make(chan bool)
181-
x := 0
181+
x := 0; _ = x
182182
go func() {
183183
x = 42
184184
done <- true

0 commit comments

Comments
 (0)
Please sign in to comment.