Should it be

    interface{ int | any } // no specific types (intersection is empty)

instead
On Wednesday, January 5, 2022 at 11:20:16 PM UTC+8 tapi...@gmail.com wrote:

> https://tip.golang.org/ref/spec#Structure_of_interfaces
>
>    interface{ int; any } // no specific types (intersection is empty)
>
>
> Why the constraint has no specific types. Doesn't it specify int?
>

-- 
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/09badb9a-0f63-4f49-9e07-be6266969f96n%40googlegroups.com.

Reply via email to