1
0
mirror of https://github.com/golang/go synced 2024-11-19 03:54:42 -07:00
go/internal/lsp/testdata/constant/constant.go

15 lines
373 B
Go
Raw Normal View History

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