title: InvalidUnion layout: article

InvalidUnion occurs when an embedded union or approximation element is
not valid.

Example:
 type _ interface {
  	~int | interface{ m() }
 }