github.com/chenfeining/golangci-lint@v1.0.2-0.20230730162517-14c6c67868df/test/testdata/govet_ifaceassert.go (about) 1 //golangcitest:args -Egovet 2 //golangcitest:config_path testdata/configs/govet_ifaceassert.yml 3 package testdata 4 5 import ( 6 "io" 7 ) 8 9 func GovetIfaceAssert() { 10 var v interface { 11 Read() 12 } 13 _ = v.(io.Reader) // want "impossible type assertion: no type can implement both interface\\{Read\\(\\)\\} and io\\.Reader \\(conflicting types for Read method\\)" 14 }