go version
)?go env
)?If you change my test so that it says
ch := make(chan string, 3)
instead of
ch := make(chan int, 3)
it fixes the error; apparently reflect.ChanOf() only makes a flawed Type object
if a correct one is not already compiled into the program.
hank you for the bug report.
CL https://golang.org/cl/27119 mentions this issue.
Most helpful comment
hank you for the bug report.