mirror of
https://github.com/golang/go
synced 2024-11-19 08:24:41 -07:00
7c3f65130f
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>
15 lines
373 B
Go
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)
|
|
}
|