github.com/neugram/ng@v0.0.0-20180309130942-d472ff93d872/eval/testdata/chan1_error.ng (about)

     1  func invalid(ch <-chan int) {
     2  	close(ch) // ERROR: cannot close receive-only channel
     3  }
     4  
     5  print("OK")