package main type Foo struct{ X int32 } func (f Foo) Bad() int32 { return f.X } // ERROR: value receiver func main() { f := Foo{X: 1} _ = f.Bad() }