diff options
Diffstat (limited to 'test/typeparam/issue49241.dir/c.go')
-rw-r--r-- | test/typeparam/issue49241.dir/c.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/typeparam/issue49241.dir/c.go b/test/typeparam/issue49241.dir/c.go new file mode 100644 index 0000000..34ea7c3 --- /dev/null +++ b/test/typeparam/issue49241.dir/c.go @@ -0,0 +1,17 @@ +// Copyright 2021 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package c + +import "./a" + +//go:noinline +func F() interface{} { + return a.T[int]{} +} + +//go:noinline +func G() interface{} { + return struct{ X, Y a.U }{} +} |