| 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(re"()x", x_field) | |
| } | |
| func _() { | |
| foo := struct{x int}{x: 1} | |
| _ = float64(foo. //@complete(re"() \\/", x_field) | |
| } |