aboutsummaryrefslogtreecommitdiff
path: root/test/typeparam/smoketest.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/typeparam/smoketest.go')
-rw-r--r--test/typeparam/smoketest.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/typeparam/smoketest.go b/test/typeparam/smoketest.go
index b7d6201b2c..5243dc5c3c 100644
--- a/test/typeparam/smoketest.go
+++ b/test/typeparam/smoketest.go
@@ -9,9 +9,9 @@
package smoketest
// type parameters for functions
-func f1[P any]()
-func f2[P1, P2 any, P3 any]()
-func f3[P interface{}](x P, y T1[int])
+func f1[P any]() {}
+func f2[P1, P2 any, P3 any]() {}
+func f3[P interface{}](x P, y T1[int]) {}
// function instantiations
var _ = f1[int]
@@ -29,15 +29,15 @@ type _ T2[int, string, struct{}]
type _ T3[bool]
// methods
-func (T1[P]) m1() {}
-func (T1[_]) m2() {}
+func (T1[P]) m1() {}
+func (T1[_]) m2() {}
func (x T2[P1, P2, P3]) m() {}
// type lists
type _ interface {
m1()
m2()
- type int, float32, string
+ int | float32 | string
m3()
}