go/internal/lsp/testdata/snippets/literal_snippets118.go.in

15 lines
330 B
Go

// +build go1.18
//go:build go1.18
package snippets
type Tree[T any] struct{}
func (tree Tree[T]) Do(f func(s T)) {}
func _() {
_ = "func(...) {}" //@item(litFunc, "func(...) {}", "", "var")
var t Tree[string]
t.Do(fun) //@complete(")", litFunc),snippet(")", litFunc, "func(s string) {$0\\}", "func(s string) {$0\\}")
}