diff options
Diffstat (limited to 'test/typeparam/dottype.go')
-rw-r--r-- | test/typeparam/dottype.go | 5 |
1 files changed, 5 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() { |