Skip to content

Wrong expression result count on builtin functions calls #1760

@auduchinok

Description

@auduchinok

GoInspectionUtil.getExpressionResultCount returns -1 for GoBuiltinCallExpr.
Example golang code with builtin make call:

func f() { m := make(map[string]int,10) ... }

Method definition:
https://github.com/eugene-auduchinok/go-lang-idea-plugin/blob/7118347bf439e09c1cecc4482d0bfd75dc604ca7/src/com/goide/inspections/GoInspectionUtil.java#L31-31

Tell me if I'm wrong and this is a proper behaviour for some reason.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions