aboutsummaryrefslogtreecommitdiff
path: root/src/go/types/testdata/examples/functions.go2
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/types/testdata/examples/functions.go2')
-rw-r--r--src/go/types/testdata/examples/functions.go22
1 files changed, 1 insertions, 1 deletions
diff --git a/src/go/types/testdata/examples/functions.go2 b/src/go/types/testdata/examples/functions.go2
index a053471202..81b9d3456c 100644
--- a/src/go/types/testdata/examples/functions.go2
+++ b/src/go/types/testdata/examples/functions.go2
@@ -98,7 +98,7 @@ func g2b[P, Q any](x P, y Q) {
// Here's an example of a recursive function call with variadic
// arguments and type inference inferring the type parameter of
// the caller (i.e., itself).
-func max[T interface{ type int }](x ...T) T {
+func max[T interface{ ~int }](x ...T) T {
var x0 T
if len(x) > 0 {
x0 = x[0]