Lines Matching refs:interface
7 // Verify that pointers and interface types cannot be method receivers.
18 func (p P) val() int { return 1 } // ERROR "receiver.* pointer|invalid pointer or interface receiver"
19 func (p *P1) val() int { return 1 } // ERROR "receiver.* pointer|invalid pointer or interface receiver"
21 type I interface{}
22 type I1 interface{}
24 func (p I) val() int { return 1 } // ERROR "receiver.*interface|invalid pointer or interface receiver"
25 func (p *I1) val() int { return 1 } // ERROR "receiver.*interface|invalid pointer or interface receiver"
27 type Val interface {