diff options
Diffstat (limited to 'test/fixedbugs/issue41500.go')
-rw-r--r-- | test/fixedbugs/issue41500.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/fixedbugs/issue41500.go b/test/fixedbugs/issue41500.go index d1e4efc8fd..82dca34820 100644 --- a/test/fixedbugs/issue41500.go +++ b/test/fixedbugs/issue41500.go @@ -13,8 +13,8 @@ type s struct { func f() { var x *s - _ = x == nil || len(x.slice) // ERROR "invalid operation: .+ \(operator \|\| not defined on int\)" - _ = len(x.slice) || x == nil // ERROR "invalid operation: .+ \(operator \|\| not defined on int\)" - _ = x == nil && len(x.slice) // ERROR "invalid operation: .+ \(operator && not defined on int\)" - _ = len(x.slice) && x == nil // ERROR "invalid operation: .+ \(operator && not defined on int\)" + _ = x == nil || len(x.slice) // ERROR "invalid operation: .+ \(operator \|\| not defined on int\)|incompatible types" + _ = len(x.slice) || x == nil // ERROR "invalid operation: .+ \(operator \|\| not defined on int\)|incompatible types" + _ = x == nil && len(x.slice) // ERROR "invalid operation: .+ \(operator && not defined on int\)|incompatible types" + _ = len(x.slice) && x == nil // ERROR "invalid operation: .+ \(operator && not defined on int\)|incompatible types" } |