Source file test/fixedbugs/issue82054.go

     1  // build
     2  
     3  // Copyright 2026 The Go Authors. All rights reserved.
     4  // Use of this source code is governed by a BSD-style
     5  // license that can be found in the LICENSE file.
     6  
     7  package p
     8  
     9  func F() func() {
    10  	type T struct{ x int }
    11  	t := &T{}
    12  	return func() {
    13  		go func() { t.x = 1 }()
    14  	}
    15  }
    16  

View as plain text