1 // D19 rule 5 through an Edge field: e.Send is a Sender (send-only) and e.Recv
2 // is a Receiver (receive-only), so the opposite operation is a compile error
3 // whether it is written against a bare end or through the pair.
4 //
5 // expected: cannot receive from send-only channel
6 package main
7 8 func main() {
9 select {
10 case <-shutdown:
11 return
12 default:
13 }
14 var e Edge[int32, int32]
15 v := <-e.Send
16 println(v)
17 }
18