diff options
Diffstat (limited to 'test/fixedbugs/bug278.go')
-rw-r--r-- | test/fixedbugs/bug278.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/fixedbugs/bug278.go b/test/fixedbugs/bug278.go index 8c804cfe4..3699b9a14 100644 --- a/test/fixedbugs/bug278.go +++ b/test/fixedbugs/bug278.go @@ -15,9 +15,9 @@ func f() [10]int { var m map[int][10]int func main() { - f()[1] = 2 // ERROR "cannot" - f()[2:3][0] = 4 // ERROR "cannot" + f()[1] = 2 // ERROR "cannot|invalid" + f()[2:3][0] = 4 // ERROR "cannot|addressable" var x = "abc" - x[2] = 3 // ERROR "cannot" - m[0][5] = 6 // ERROR "cannot" + x[2] = 3 // ERROR "cannot|invalid" + m[0][5] = 6 // ERROR "cannot|invalid" } |