diff options
Diffstat (limited to 'test/fixedbugs/bug340.go')
-rw-r--r-- | test/fixedbugs/bug340.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/fixedbugs/bug340.go b/test/fixedbugs/bug340.go index 461cc6cd4..34cc01315 100644 --- a/test/fixedbugs/bug340.go +++ b/test/fixedbugs/bug340.go @@ -10,8 +10,8 @@ package main func main() { var x interface{} - switch t := x.(type) { // ERROR "0 is not a type" - case 0: - t.x = 1 // ERROR "type interface \{ \}" + switch t := x.(type) { + case 0: // ERROR "type" + t.x = 1 // ERROR "type interface \{\}|reference to undefined field or method" } } |