diff options
Diffstat (limited to 'test/fixedbugs/bug205.go')
-rw-r--r-- | test/fixedbugs/bug205.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/fixedbugs/bug205.go b/test/fixedbugs/bug205.go index 769837d04..1e0d9d1f3 100644 --- a/test/fixedbugs/bug205.go +++ b/test/fixedbugs/bug205.go @@ -11,8 +11,8 @@ var s string; var m map[string]int; func main() { - println(t["hi"]); // ERROR "non-integer slice index" - println(s["hi"]); // ERROR "non-integer string index" - println(m[0]); // ERROR "as type string in map index" + println(t["hi"]); // ERROR "non-integer slice index|must be integer" + println(s["hi"]); // ERROR "non-integer string index|must be integer" + println(m[0]); // ERROR "cannot use.*as type string" } |