Skip to content

Parsing error on "var no = 1;" #442

@justinmclean

Description

@justinmclean

Error produced:
cfml.parsing.cfscript.CFLiteral cannot be cast to cfml.parsing.cfscript.CFIdentifier

Code that shows it:

<cfcomponent displayname="parseError">
<cffunction name="noIsOne" returntype="void">
    <cfscript>
         var no = 1; 
    </cfscript>
</cffunction>
</cfcomponent>

Oddly without the var there is no parse error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions