Debian Codegraph @

go/analysis/passes/inline/testdata/src/rmimport/rmimport.go

raw
1 package rmimport
2
3 import "a"
4
5 // Test that application of two fixes that each remove the second-last
6 // import of "a" results in removal of the import. This is implemented
7 // by the general analysis fix logic, not by any one analyzer.
8 func _() {
9 print(a.T{}.Two()) // want `should be inlined`
10 print(a.T{}.Two()) // want `should be inlined`
11 }