cflint / CFLint

Static code analysis for CFML (a linter)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wrong Parsing for new Object({})

Vintic opened this issue · comments

Tested for UNUSED_LOCAL_VARIABLE.
LOCAL.myVar - is reported as unused.

<cfcomponent>
    <cffunction name="actionList">
        <cfset LOCAL.myVar = test(
            argName = "test"
        )>
        <cfset  LOCAL.secondVar = new myObj({
            varName = LOCAL.myVar
        })>
    </cffunction>
</cfcomponent>

@Vintic Can you check again with the latest build? I think c4006c9 may have fixed this.

@Vintic Can you check again with the latest build? I think c4006c9 may have fixed this.

Yes, fixed, thanks you. Should I close issue?

I don't see why we would leave the issue opened if it's resolved. Also, duplicate of #640. I'll close it.