title: DuplicateFieldAndMethod layout: article

DuplicateFieldAndMethod occurs when an identifier appears as both a field
and method name.

Example:
 type T struct {
 	m int
 }

 func (T) m() {}