编译器提示 cannot take the address of XXX literal,但其实可以?

xuchunyang · 2019-11-12 13:54:57 · 2634 次点击

那是因为你的Point没有实现该方法,需要带&

#1
更多评论

你的receiver 是(p *Point)

#2