test/typeparam/issue50481c.dir/main.go
raw| 1 | // Copyright 2022 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | // Test that type substitution works and export/import works correctly even for a |
| 6 | // generic type that has multiple blank type params. |
| 7 | |
| 8 | package main |
| 9 | |
| 10 | import ( |
| 11 | "./a" |
| 12 | "fmt" |
| 13 | ) |
| 14 | |
| 15 | func main() { |
| 16 | var x a.T[int, a.Myint, string] |
| 17 | fmt.Printf("%v\n", x) |
| 18 | } |