This isn't a bug per se, but I can file one if requested.

https://go2goplay.golang.org/p/AWynhg6ya7h

Since embedding interfaces with type lists uses the intersection of
the items in the type list, it's possible to create an interface that
cannot be satisfied by any type.

Currently this does not cause an error until you attempt to
instantiate something that uses such an interface as a bound.

I think it would be more useful to raise the error when defining the
interface that cannot be used as it's likely an error—or at least I
can see no valid use for creating an unsatisfiable constraint.

-- 
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/CANG3jXJt_n1HrRMV1SBcaurXOrXVJxXrKN_F%3DtgMAcMJ%2BPOLcg%40mail.gmail.com.

Reply via email to