]> Cypherpunks repositories - gostls13.git/commitdiff
test: recognize new gofrontend error message
authorIan Lance Taylor <iant@golang.org>
Sun, 29 Nov 2020 01:51:18 +0000 (17:51 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 30 Nov 2020 20:04:55 +0000 (20:04 +0000)
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>
test/fixedbugs/bug340.go

index 118bbacc2202e9563a82034538fc2f5624be0fce..8c543c98d97e3b5299e1747a96b6a8f6de4880ef 100644 (file)
@@ -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"
        }
 }