Home | History | Annotate | Download | only in test

Lines Matching refs:interface

128 		nilN interface{}
132 _ = nil == interface{}(nil)
133 _ = interface{}(nil) == nil
135 ii := func(i1 interface{}, i2 interface{}) bool { return i1 == i2 }
136 ni := func(n interface{}, i int) bool { return n == i }
137 in := func(i int, n interface{}) bool { return i == n }
138 pi := func(p *int, i interface{}) bool { return p == i }
139 ip := func(i interface{}, p *int) bool { return i == p }
141 assert((interface{}(nil) == interface{}(nil)) == ii(nilN, nilN),
142 "for interface{}==interface{} compiler == runtime")
144 assert(((*int)(nil) == interface{}(nil)) == pi(nilI, nilN),
145 "for *int==interface{} compiler == runtime")
146 assert((interface{}(nil) == (*int)(nil)) == ip(nilN, nilI),
147 "for interface{}==*int compiler == runtime")
149 assert((&five == interface{}(nil)) == pi(&five, nilN),
150 "for interface{}==*int compiler == runtime")
151 assert((interface{}(nil) == &five) == ip(nilN, &five),
152 "for interface{}==*int compiler == runtime")
154 assert((5 == interface{}(5)) == ni(five, five),
155 "for int==interface{} compiler == runtime")
156 assert((interface{}(5) == 5) == in(five, five),
157 "for interface{}==int comipiler == runtime")