-
Notifications
You must be signed in to change notification settings - Fork 567
Open
Description
package main
import (
"fmt"
"reflect"
)
type b func(intParam int)
type a b
func c() {
aFunc := generateFunc()
if f, ok := aFunc.(a); ok {
fmt.Println(reflect.TypeOf(f))
f(<caret>) // should be not enough arguments in call to f
}
}
func generateFunc() interface{} {
return a(func (intParam int) { })
}
func main() {
c()
}
See com.goide.editor.GoParameterInfoHandler#showParameterInfo