Skip to content

Analyzer: built in identifiers cannot be used as type annotations - compile time error #3475

Closed
@DartBot

Description

@DartBot

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions