aboutsummaryrefslogtreecommitdiff
path: root/src/go/types/testdata/check/expr3.src
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/types/testdata/check/expr3.src')
-rw-r--r--src/go/types/testdata/check/expr3.src2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/go/types/testdata/check/expr3.src b/src/go/types/testdata/check/expr3.src
index 0525a5a33a..3ab367810f 100644
--- a/src/go/types/testdata/check/expr3.src
+++ b/src/go/types/testdata/check/expr3.src
@@ -103,7 +103,7 @@ func indexes() {
var ok mybool
_, ok = m["bar"]
_ = ok
- _ = m[0 /* ERROR "cannot use 0" */ ] + "foo" // ERROR "cannot convert"
+ _ = m/* ERROR "mismatched types int and untyped string" */[0 /* ERROR "cannot use 0" */ ] + "foo"
var t string
_ = t[- /* ERROR "negative" */ 1]