> package main
>
> func fi(i int) {}
> func fis(is []int) {}
>
> type TI int
> type TIS []int
>
> func main() {
>     var ti TI
>     fi(ti) // cannot use ti (type TI) as type int in argument to fi
>     
>     var tis TIS
>     fis(tis) // no problems! 
> }
>
>

-- 
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