1
0
mirror of https://github.com/golang/go synced 2024-11-19 02:34:44 -07:00
go/internal/lsp/testdata/cast/cast.go.in
Rebecca Stambler fc4f04983f internal/lsp: add more testdata for completion and diagnostics
Change-Id: I2a73e51b60f76a2af0f8ff4d34220b551e0cd378
Reviewed-on: https://go-review.googlesource.com/c/150041
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2018-11-20 06:06:34 +00:00

11 lines
225 B
Go

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)
}