mirror of
https://github.com/golang/go
synced 2024-10-01 18:28:32 -06: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
|
||
|
)
|
||
|
}
|