Lines Matching refs:interface
55 type I1 interface{}
56 type I2 interface {
59 var i0 interface{} = z
61 m0 := make(map[interface{}]int)
66 m0[z] = 42 // this should work: z is assignment-compatible with interface{}
69 })] = 42 // this should work: *struct{x int} is assignment-compatible with interface{}
70 m0[p] = 42 // this should work: p is assignment-compatible with interface{}
71 m0[false] = 42 // this should work: false is assignment-compatible with interface{}
72 m0[17] = 42 // this should work: 17 is assignment-compatible with interface{}
73 m0["foo"] = 42 // this should work: "foo" is assignment-compatible with interface{}
90 bug286.go:80: invalid map index z - need type interface { }
91 bug286.go:83: invalid map index new(struct { x int }) - need type interface { }
92 bug286.go:84: invalid map index p - need type interface { }
93 bug286.go:85: invalid map index false - need type interface { }
94 bug286.go:86: invalid map index 17 - need type interface { }
95 bug286.go:87: invalid map index "foo" - need type interface { }