diff options
Diffstat (limited to 'go/types/testdata/stmt0.src')
-rw-r--r-- | go/types/testdata/stmt0.src | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/go/types/testdata/stmt0.src b/go/types/testdata/stmt0.src index 4c84036..073e83b 100644 --- a/go/types/testdata/stmt0.src +++ b/go/types/testdata/stmt0.src @@ -540,6 +540,7 @@ func typeswitches() { } switch x /* ERROR "declared but not used" */ := x.(type) {} + switch _ /* ERROR "no new variable on left side of :=" */ := x.(type) {} switch x := x.(type) { case int: |