1package main
2
3type I interface { send(chan <- int) }
4
5type S struct { v int }
6func (p *S) send(c chan <- int) { c <- p.v }
7
8func main() {
9  s := S{0};
10  var i I = &s;
11  c := make(chan int);
12  go i.send(c);
13  if <- c != 0 { panic(0) }
14}
15