honnef.co/go/tools@v0.5.0-0.dev.0.20240520180541-dcae280a5e87/simple/s1005/testdata/src/example.com/CheckUnnecessaryBlank/receive-blank.go (about) 1 package pkg 2 3 func fn2() { 4 var ch chan int 5 <-ch 6 _ = <-ch //@ diag(`unnecessary assignment to the blank identifier`) 7 select { 8 case <-ch: 9 case _ = <-ch: //@ diag(`unnecessary assignment to the blank identifier`) 10 } 11 x := <-ch 12 y, _ := <-ch, <-ch 13 _, z := <-ch, <-ch 14 _, _, _ = x, y, z 15 }