Analyzer: built in identifiers cannot be used as type annotations - compile time error #3475
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]
This is a co19 test:
/tests/co19/src/Language/07_Classes/07_Classes_A04_t20.dart
class A {
static abstract method() {}
That's nutty, it shouldn't work, right? Well, co19 specifis a compile time error but doesn't reference a specific part of the spec. However, the analyzer flags it as a static type warning because there is no type named 'abstract' defined. I think the latter is correct, since 'abstract' is a pseudo keyword, not a reserved word.
I just wanted a second pair of eyes on this before I filed a co19 bug.
The text was updated successfully, but these errors were encountered: