Inspectopedia Help

Unused type parameter

Reports unused type parameters.

func main() { printAll( 42, "bird", ) } func printAll[I int, S string]( i I, s string, ) { fmt.Println(i) fmt.Println(s) }

The printAll function has two type parameters I and S but uses only the first of them. Therefore, the S string is grayed out.

Inspection Details

By default bundled with:

GoLand 2024.1, Qodana for Go 2024.1,

Can be installed with plugin:


Last modified: 29 April 2024