Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
justinmclean opened this issue Aug 12, 2017 · 1 comment
Closed

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

justinmclean opened this issue Aug 12, 2017 · 1 comment
Labels
Milestone

Comments

@justinmclean
Copy link
Contributor

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

ryaneberly added a commit to cfparser/cfparser that referenced this issue Aug 13, 2017
@ryaneberly ryaneberly added this to the 1.3.0 milestone Aug 13, 2017
@ryaneberly
Copy link
Contributor

Thanks @justinmclean , will be fixed in next cfparser release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants