From: Russ Cox Date: Thu, 3 Dec 2020 17:33:12 +0000 (-0500) Subject: [dev.regabi] all: merge master (d0c0dc682c1f) into dev.regabi X-Git-Tag: go1.17beta1~1539^2~386 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6e30fc10fc;p=gostls13.git [dev.regabi] all: merge master (d0c0dc682c1f) into dev.regabi Change-Id: Ia54d7306ca7550b8d5623f505070558d275faa23 --- 6e30fc10fc7453f48e4c0e5d726172d0191158bf diff --cc test/fixedbugs/bug340.go index a067940408,8c543c98d9..542a6eab03 --- a/test/fixedbugs/bug340.go +++ b/test/fixedbugs/bug340.go @@@ -12,7 -12,6 +12,7 @@@ 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|interface with no methods" + t.x = 1 - x.x = 1 // ERROR "type interface \{\}|reference to undefined field or method" ++ x.x = 1 // ERROR "type interface \{\}|reference to undefined field or method|interface with no methods" } }