go/analysis/passes/inline/testdata/src/issue77844.txtar
raw| 1 | -- go.mod -- |
| 2 | module example.com |
| 3 | |
| 4 | go 1.24 |
| 5 | |
| 6 | -- lib/lib.go -- |
| 7 | package lib |
| 8 | |
| 9 | //go:fix inline |
| 10 | type Alias[T any] = []T |
| 11 | |
| 12 | -- other/other.go -- |
| 13 | package other |
| 14 | |
| 15 | type Other int |
| 16 | |
| 17 | -- main/main.go -- |
| 18 | package main |
| 19 | |
| 20 | import ( |
| 21 | "example.com/lib" |
| 22 | "example.com/other" |
| 23 | ) |
| 24 | |
| 25 | func _() { |
| 26 | var _ lib.Alias[other.Other] // want "Type alias lib.Alias.other.Other. should be inlined" |
| 27 | } |