GoPLS Viewer

Home|gopls/go/pointer/testdata/issue9002.go
1package main
2
3func main() {
4    // Regression test for golang issue 9002.
5    //
6    // The two-result "value,ok" receive operation generated a
7    // too-wide constraint loading (value int, ok bool), not bool,
8    // from the channel.
9    //
10    // This bug manifested itself in an out-of-bounds array access
11    // when the makechan object was the highest-numbered node, as in
12    // this program.
13    //
14    // In more realistic programs it silently resulted in bogus
15    // constraints.
16    __ = <-make(chan int)
17}
18
MembersX
Members
X