e2i_conversion.go 242 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 // RUN: llgo -o %t %s // RUN: %t 2>&1 | count 0 package main import "io" type rdr struct{} func (r rdr) Read(b []byte) (int, error) { return 0, nil } func F(i interface{}) { _ = i.(io.Reader) } func main() { var r rdr F(r) F(&r) }