mirror of
https://github.com/golang/go
synced 2024-11-22 19:14:53 -07:00
test: recognize new gofrontend error message
As of https://golang.org/cl/273886: fixedbugs/bug340.go:15:18: error: reference to method ‘x’ in interface with no methods For golang/go#10700 Change-Id: Id29eb0e34bbb524117614229c4c27cfd17dae286 Reviewed-on: https://go-review.googlesource.com/c/go/+/273887 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
parent
c193279e2c
commit
d6abf298cf
@ -12,6 +12,6 @@ func main() {
|
||||
var x interface{}
|
||||
switch t := x.(type) {
|
||||
case 0: // ERROR "type"
|
||||
t.x = 1 // ERROR "type interface \{\}|reference to undefined field or method"
|
||||
t.x = 1 // ERROR "type interface \{\}|reference to undefined field or method|interface with no methods"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user