1
0
mirror of https://github.com/golang/go synced 2024-10-01 13:28:37 -06:00
go/internal/lsp/testdata/constant/constant.go
Rebecca Stambler 7c3f65130f internal/lsp: remove constant value from label and add tests
Fixes golang/go#29816
Fixes golang/go#31923

Change-Id: I4f0ff7941a5d26994ef6bbd10346eafe31160a21
Reviewed-on: https://go-review.googlesource.com/c/tools/+/177357
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-05-15 19:19:14 +00:00

15 lines
373 B
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)
}