| This test checks that completion considers assignability when ranking results. |
| module golang.org/lsptests/assign |
| "completeUnimported": false |
| import "golang.org/lsptests/assign/internal/secret" |
| myInt int //@item(assignInt, "myInt", "int", "var") |
| myStr string //@item(assignStr, "myStr", "string", "var") |
| var _ string = my //@rank(" //", assignStr, assignInt) |
| var _ string = //@rank(" //", assignStr, assignInt) |
| var a string = a //@complete(" //") |
| fooBar := fooBa //@complete(" //"),item(assignFooBar, "fooBar", "", "var") |
| abc, fooBar := 123, fooBa //@complete(" //", assignFooBar) |
| fooBar := fooBa //@complete(" //", assignFooBar) |
| -- internal/secret/secret.go -- |