Hello,

having fun with generics I stumbled upon this failure:
https://go2goplay.golang.org/p/Dc3tWrd6RzQ

Bryan C. Mills helped me to fix it by forcing the type at the call point. 
(the comment in the code)

Forcing a type on a var you just declared is a little bit troublesome in 
this case, but it could be more painful for other cases.

Is that something that could be improved?

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/cf4254bd-e2a5-4ed5-bb1d-6989016b258do%40googlegroups.com.

Reply via email to