title: InvalidMethodExpr layout: article

InvalidMethodExpr occurs when a pointer method is called but the argument
is not addressable.

Example:
 type T struct {}

 func (*T) m() int { return 1 }

 var _ = T.m(T{})