aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/typeparam/dottype.go5
-rw-r--r--test/typeparam/dottype.out2
2 files changed, 7 insertions, 0 deletions
diff --git a/test/typeparam/dottype.go b/test/typeparam/dottype.go
index 89a9b02111..c9c900c096 100644
--- a/test/typeparam/dottype.go
+++ b/test/typeparam/dottype.go
@@ -69,6 +69,11 @@ func main() {
println(h[int](struct{ a, b int }{3, 5}).a)
println(k[int](mybar(3)).bar())
+
+ type large struct {a,b,c,d,e,f int}
+ println(f[large](large{}).a)
+ l2, ok := f2[large](large{})
+ println(l2.a, ok)
}
func shouldpanic(x func()) {
defer func() {
diff --git a/test/typeparam/dottype.out b/test/typeparam/dottype.out
index 058c923a5c..8e6a3c2552 100644
--- a/test/typeparam/dottype.out
+++ b/test/typeparam/dottype.out
@@ -6,3 +6,5 @@
0 false
3
3
+0
+0 true