diff options
Diffstat (limited to 'gopls/internal/lsp/testdata/cast/cast.go.in')
-rw-r--r-- | gopls/internal/lsp/testdata/cast/cast.go.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gopls/internal/lsp/testdata/cast/cast.go.in b/gopls/internal/lsp/testdata/cast/cast.go.in new file mode 100644 index 000000000..7fe21903c --- /dev/null +++ b/gopls/internal/lsp/testdata/cast/cast.go.in @@ -0,0 +1,11 @@ +package cast + +func _() { + foo := struct{x int}{x: 1} //@item(x_field, "x", "int", "field") + _ = float64(foo.x) //@complete("x", x_field) +} + +func _() { + foo := struct{x int}{x: 1} + _ = float64(foo. //@complete(" /", x_field) +}
\ No newline at end of file |