| This test checks that we can't remove parameters for packages with errors. | |
| -- p.go -- | |
| package p | |
| func foo(unused int) { //@codeaction("unused", "refactor.rewrite.removeUnusedParam", err=re"found 0") | |
| } | |
| func _() { | |
| foo("") //@diag(`""`, re"cannot use") | |
| } |