Skip to content

pmc-analysis gives false warning on calling right version of function based on excludeAnnotations #11

@flocsy

Description

@flocsy
(:no_param)
function foo(a as Number) as Void {
    bar(a); // $.bar expects 0 arguments, but got 1[pmc-analysis]
}
(:param)
function foo() as Void {
    bar(); // $.bar expects 1 arguments, but got 0[pmc-analysis]
}
(:no_param)
function bar(a as Number) as Void {
    System.println("bar:" + a);
}
(:param)
function bar() as Void {
    System.println("bar");
}

Looks like pmc-analysis is a bit like me: finds the worst choice in every place :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions