Then I think interface{int; m()} and interface{bool;; m()} should be 
identical.
Because their type sets are both empty..

On Thursday, March 24, 2022 at 7:38:10 PM UTC+8 Jan Mercl wrote:

> On Thu, Mar 24, 2022 at 11:58 AM tapi...@gmail.com <tapi...@gmail.com> 
> wrote:
>
> https://go.dev/ref/spec#Type_identity
>
> """"
> Two interface types are identical if they define the same type set.
> """"
>

-- 
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/74f1adbe-020b-401e-b897-895f4d03a312n%40googlegroups.com.

Reply via email to