gc can not infer the type of {1, 2} of {1,2,3,4}, so you need to indicate 
it's type

在 2019年3月19日星期二 UTC+8上午10:47:43,dja...@gmail.com写道:
>
> Hi,
> https://play.golang.org/p/hRHEuGG6zAf
> why composite literal in line 16 does not work ?
> thanks in advance.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to