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

assert should be usable as an identifier #2443

Closed
DartBot opened this issue Apr 4, 2012 · 3 comments
Closed

assert should be usable as an identifier #2443

DartBot opened this issue Apr 4, 2012 · 3 comments
Assignees
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. closed-duplicate Closed in favor of an existing report
Milestone

Comments

@DartBot
Copy link

DartBot commented Apr 4, 2012

This issue was originally filed by [email protected]


dartc fails test Language/11_Statements/15_Assert_A05_t01.dart

assert() is a built in identifier (pseudokeyword) so you can re-define it
if you like, but the parser is insisting on a single argument method.

dartc /home/zundel/dart/tests/co19/src/Language/11_Statements/15_Assert_A05_t01.dart
file:/home/zundel/dart/tests/co19/src/Language/11_Statements/15_Assert_A05_t01.dart:69: Unexpected token ','
    68: flag = false;
    69: assert("it", "works!");
file:/home/zundel/dart/tests/co19/src/Language/11_Statements/15_Assert_A05_t01.dart:81: Unexpected token ','
    80: flag = false;
    81: assert(true, false, true);
Compilation failed with 2 problems.

@kasperl
Copy link

kasperl commented Apr 17, 2012

Removed Area-Compiler label.
Added Area-Analyzer label.

@danrubel
Copy link

danrubel commented Jun 4, 2012

Added this to the M1 milestone.

@scheglov
Copy link
Contributor

scheglov commented Jun 5, 2012

Set owner to @scheglov.
Added Duplicate label.
Marked as being merged into #3268.

@DartBot DartBot added Type-Defect area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. closed-duplicate Closed in favor of an existing report labels Jun 5, 2012
@DartBot DartBot added this to the M1 milestone Jun 5, 2012
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

4 participants