Skip to content

Dart2JS fails to accept built-in identifier as variable name #21154

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

Closed
eernstg opened this issue Sep 30, 2014 · 1 comment
Closed

Dart2JS fails to accept built-in identifier as variable name #21154

eernstg opened this issue Sep 30, 2014 · 1 comment
Assignees
Labels
closed-duplicate Closed in favor of an existing report type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js

Comments

@eernstg
Copy link
Member

eernstg commented Sep 30, 2014

Dart2JS stops with the compile-time error 'Error: Expected identifier, but got ';'' in the co19 test

Language/12_Expressions/30_Identifier_Reference_A02_t01.

The text on ECMA-408 p86 implies that built-in identifiers should be allowed as names of variables, even though they are not allowed as type names. The error message could indicate that 'abstract' is parsed as a modifier and never considered as a potential variable name, but in any case it should not be an error.

@kevmoo kevmoo added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed triaged labels Mar 1, 2016
@peter-ahe-google
Copy link
Contributor

Duplicate of #6972.

@peter-ahe-google peter-ahe-google added the closed-duplicate Closed in favor of an existing report label May 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js
Projects
None yet
Development

No branches or pull requests

4 participants