assert should be usable as an identifier #2443
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
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.
The text was updated successfully, but these errors were encountered: