aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/types2/testdata
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2021-07-02 16:54:14 -0700
committerRobert Griesemer <gri@golang.org>2021-07-07 23:42:19 +0000
commitd2bf94fb86b45609564919caa21c6b098b5197d3 (patch)
treed97dc4a4f0d53dd143e39cec5dde5281f6d7090d /src/cmd/compile/internal/types2/testdata
parent03ec8de24b6fc8a2abeb4013ef603f5cdef9f874 (diff)
downloadgo-d2bf94fb86b45609564919caa21c6b098b5197d3.tar.gz
go-d2bf94fb86b45609564919caa21c6b098b5197d3.zip
[dev.typeparams] cmd/compile/internal/types2: replace optype() with under() in various cases (cleanup)
This makes the behavior for type parameter operands explicit in those cases. Change-Id: I38438af67de4432f1a691dc4947e4576445f031b Reviewed-on: https://go-review.googlesource.com/c/go/+/332555 Trust: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
Diffstat (limited to 'src/cmd/compile/internal/types2/testdata')
-rw-r--r--src/cmd/compile/internal/types2/testdata/check/typeparams.go22
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/types2/testdata/check/typeparams.go2 b/src/cmd/compile/internal/types2/testdata/check/typeparams.go2
index 123567682a..8a7f6eb2c2 100644
--- a/src/cmd/compile/internal/types2/testdata/check/typeparams.go2
+++ b/src/cmd/compile/internal/types2/testdata/check/typeparams.go2
@@ -119,7 +119,7 @@ func _[T interface{ [10]int | *[20]int | []int }](x T, i int) { _ = x[i]; _ = x[
// slicing
// TODO(gri) implement this
-func _[T interface{ ~string }] (x T, i, j, k int) { _ = x /* ERROR invalid operation */ [i:j:k] }
+func _[T interface{ ~string }] (x T, i, j, k int) { _ = x /* ERROR generic slice expressions not yet implemented */ [i:j:k] }
// len/cap built-ins