Skip to content

@. callfunc shorthand results in wrong cannot find function name diagnostic #205

@georgejecook

Description

@georgejecook

this .bs code:

      childRail@.initializeWithRiversJson(childRail.riversJson)

reports diagnostic : brs1001 - Cannot find function with name 'childRail' when this file is included in scope 'source'
transpilation still succeeds, as this screenshot shows.

image

I've had a look at the code; but not sure how best to deal with this to workaround it.. not sure if it should even be in the functionExpressions references, as it's a callfun expression, or if it should just get filtered out of the response from findFunctionCalls

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions