mirror of
https://github.com/golang/go
synced 2024-11-19 02:54:42 -07:00
28 lines
238 B
Go
28 lines
238 B
Go
|
package comments
|
||
|
|
||
|
var p bool
|
||
|
|
||
|
//@complete(re"$")
|
||
|
|
||
|
func _() {
|
||
|
var a int
|
||
|
|
||
|
switch a {
|
||
|
case 1:
|
||
|
//@complete(re"$")
|
||
|
_ = a
|
||
|
}
|
||
|
|
||
|
var b chan int
|
||
|
select {
|
||
|
case <-b:
|
||
|
//@complete(re"$")
|
||
|
_ = b
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
//@complete(re"$")
|
||
|
_ = a
|
||
|
)
|
||
|
}
|