blob: 913fcbcfe540f6b43dd2bbafec42ac1c51b39e38 [file] [log] [blame]
package funcvalue
func fooFunc() int { //@item(fvFooFunc, "fooFunc", "func() int", "func")
return 0
}
var _ = fooFunc() //@item(fvFooFuncCall, "fooFunc", "func() int", "func")
var fooVar = func() int { //@item(fvFooVar, "fooVar", "func() int", "var")
return 0
}
var _ = fooVar() //@item(fvFooVarCall, "fooVar", "func() int", "var")
type myFunc func() int
var fooType myFunc = fooVar //@item(fvFooType, "fooType", "myFunc", "var")
var _ = fooType() //@item(fvFooTypeCall, "fooType", "func() int", "var")
func _() {
var f func() int
f = foo //@complete(" //", fvFooFunc, fvFooType, fvFooVar)
var i int
i = foo //@complete(" //", fvFooFuncCall, fvFooTypeCall, fvFooVarCall)
}