Skip to content

Rework count mismatch inspection #2115

@ignatov

Description

@ignatov
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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions