title: InvalidReceive layout: article

InvalidReceive occurs when there is a channel receive from a value that
is either not a channel, or is a send-only channel.

Example:
 func f() {
 	var x = 1
 	{{raw "<"}}-x
 }