| 1 |
package pkg |
| 2 |
|
| 3 |
import pkg "example.com/CheckDeprecated.assist" |
| 4 |
|
| 5 |
func tpFn() { |
| 6 |
var x pkg.S[int] |
| 7 |
x.Foo() |
| 8 |
x.Bar() //@ diag(`deprecated`) |
| 9 |
x.Baz() //@ diag(`deprecated`) |
| 10 |
x.Qux() |
| 11 |
_ = x.Field1 |
| 12 |
_ = x.Field2 // This should be flagged, but see issue 1215 |
| 13 |
} |