You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you expect to see? go1.6.1 says this: [ notice second line says "chan" ]
< string >
< chan string >
< chan int >
What did you see instead? go7.1 says this: [ notice second line says "han" ]
< string >
< han string >
< chan int >
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.