sky-uk / bslint

A linter for the BrightScript language.
BSD 3-Clause "New" or "Revised" License
24 stars 9 forks source link

ERROR: Parsing program failed #148

Closed pbaf closed 7 years ago

pbaf commented 7 years ago

Version: 1.0.1

Failure code block

function TestClass() as object
    if m.TestClass = invalid then
        obj = CreateObject("roAssociativeArray")
        obj.var = true

        m.TestClass = obj
    end if

    return m.TestClass
end function

ERROR: Parsing program failed. Line number: 10


Parsing works

function TestClass() as object
    if true then
        obj = CreateObject("roAssociativeArray")
        obj.var = true

        m.TestClass = obj
    end if

    return m.TestClass
end function