Sign in
go
/
tools
/
431795907eb73d14213ad8661d28797cbaca8c4d
/
.
/
go
/
analysis
/
passes
/
waitgroup
/
testdata
/
src
/
a
/
a.go
blob: c1fecc2e1211aa4f7486d67edba2663341e4da24 [
file
] [
log
] [
blame
]
package a
import "sync"
func f() {
var wg sync.WaitGroup
wg.Add(1)
// ok
go func() {
wg.Add(1)
// want "WaitGroup.Add called from inside new goroutine"
// ...
wg.Add(1)
// ok
}()
wg.Add(1)
// ok
}