aboutsummaryrefslogtreecommitdiff
path: root/test/fixedbugs/issue28926.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixedbugs/issue28926.go')
-rw-r--r--test/fixedbugs/issue28926.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/fixedbugs/issue28926.go b/test/fixedbugs/issue28926.go
index 5a46bd307c..1ca97d6f60 100644
--- a/test/fixedbugs/issue28926.go
+++ b/test/fixedbugs/issue28926.go
@@ -13,12 +13,12 @@ type Stringer interface {
func main() {
var e interface{}
switch e := e.(type) {
- case G: // ERROR "undefined: G"
+ case G: // ERROR "undefined: G|undefined type .*G"
e.M() // ok: this error should be ignored because the case failed its typecheck
- case E: // ERROR "undefined: E"
+ case E: // ERROR "undefined: E|undefined type .*E"
e.D() // ok: this error should be ignored because the case failed its typecheck
case Stringer:
// ok: this error should not be ignored to prove that passing legs aren't left out
- _ = e.(T) // ERROR "undefined: T"
+ _ = e.(T) // ERROR "undefined: T|undefined type .*T"
}
}