aboutsummaryrefslogtreecommitdiff
path: root/gopls/internal/lsp/testdata/builtins/constants.go
blob: 7ad07bd1f3ae5edb8fcfcd8d88c423b8c8ba3f08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package builtins

func _() {
	const (
		foo = iota //@complete(" //", iota)
	)

	iota //@complete(" //")

	var iota int //@item(iotaVar, "iota", "int", "var")

	iota //@complete(" //", iotaVar)
}

func _() {
	var twoRedUpEnd bool //@item(TRUEVar, "twoRedUpEnd", "bool", "var")

	var _ bool = true //@rank(" //", _true, TRUEVar)
}