aboutsummaryrefslogtreecommitdiff
path: root/test/fixedbugs/issue20185.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixedbugs/issue20185.go')
-rw-r--r--test/fixedbugs/issue20185.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fixedbugs/issue20185.go b/test/fixedbugs/issue20185.go
index 2cbb143ed0..9065868d7f 100644
--- a/test/fixedbugs/issue20185.go
+++ b/test/fixedbugs/issue20185.go
@@ -10,7 +10,7 @@
package p
func F() {
- switch t := nil.(type) { // ERROR "cannot type switch on non-interface value nil"
+ switch t := nil.(type) { // ERROR "cannot type switch on non-interface value"
default:
_ = t
}
@@ -19,7 +19,7 @@ func F() {
const x = 1
func G() {
- switch t := x.(type) { // ERROR "cannot type switch on non-interface value x \(type untyped int\)"
+ switch t := x.(type) { // ERROR "cannot type switch on non-interface value|declared but not used"
default:
}
}