mirror of
https://github.com/golang/go
synced 2024-11-19 05:44:40 -07:00
fc4f04983f
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>
11 lines
225 B
Go
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)
|
|
} |