blob: 9ac2e43316ab6000ec835091d075813a9d0deff6 [file] [log] [blame]
This test checks completion related to constants.
-- flags --
-ignore_extra_diags
-- constant.go --
package constant
const x = 1 //@item(constX, "x", "int", "const")
const (
a int = iota << 2 //@item(constA, "a", "int", "const")
b //@item(constB, "b", "int", "const")
c //@item(constC, "c", "int", "const")
)
func _() {
const y = "hi" //@item(constY, "y", "string", "const")
//@complete("", constY, constA, constB, constC, constX)
}