blob: 6c52d5063b57094ceb1dca088af59f6ccea5c050 [file] [log] [blame]
This test checks completion related to casts.
-- flags --
-ignore_extra_diags
-- cast.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)
}