blob: 05b2c9a38d0a33ca2db3b73b61d7ee3680ba20a1 [file] [log] [blame]
package badstmt
import (
"golang.org/x/tools/internal/lsp/foo"
)
func _() {
defer foo.F //@complete(" //", Foo),diag(" //", "LSP", "function must be invoked in defer statement")
y := 1
defer foo.F //@complete(" //", Foo)
}
func _() {
switch true {
case true:
go foo.F //@complete(" //", Foo)
}
}
func _() {
defer func() {
foo.F //@complete(" //", Foo),snippet(" //", Foo, "Foo()", "Foo()")
foo. //@complete(" //", Foo, IntFoo, StructFoo)
}
}