github.com/nozzle/golangci-lint@v1.49.0-nz3/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 }