unused/testdata/src/example.com/local-type-param-source/typeparam.go
raw| 1 | package tparamsource |
| 2 | |
| 3 | // https://staticcheck.dev/issues/1282 |
| 4 | |
| 5 | import ( |
| 6 | "testing" |
| 7 | |
| 8 | tparamsink "example.com/local-type-param-sink" |
| 9 | ) |
| 10 | |
| 11 | func TestFoo(t *testing.T) { //@ used("TestFoo", true), used("t", true) |
| 12 | type EmptyStruct struct{} //@ used("EmptyStruct", true) |
| 13 | _ = tparamsink.TypeOfType[EmptyStruct]() |
| 14 | } |