title: InvalidIfaceAssign layout: article

InvalidIfaceAssign occurs when a value of type T is used as an
interface, but T does not implement a method of the expected interface.

Example:
 type I interface {
 	f()
 }

 type T int

 var x I = T(1)