summaryrefslogtreecommitdiffstats
path: root/test/typeparam/issue50481c.dir/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/typeparam/issue50481c.dir/main.go')
-rw-r--r--test/typeparam/issue50481c.dir/main.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/typeparam/issue50481c.dir/main.go b/test/typeparam/issue50481c.dir/main.go
new file mode 100644
index 0000000..178542b
--- /dev/null
+++ b/test/typeparam/issue50481c.dir/main.go
@@ -0,0 +1,18 @@
+// Copyright 2022 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.
+
+// Test that type substitution works and export/import works correctly even for a
+// generic type that has multiple blank type params.
+
+package main
+
+import (
+ "./a"
+ "fmt"
+)
+
+func main() {
+ var x a.T[int, a.Myint, string]
+ fmt.Printf("%v\n", x)
+}