Skip to content

abstract_class_member triggering inside abstract class #62231

@FMorschel

Description

@FMorschel

Repro:

abstract class C {
  abstract C operator +(Cother);
//^ abstract_class_member
}

Message:

Members of classes can't be declared to be 'abstract'.
Try removing the 'abstract' keyword. You can add the 'abstract' keyword before the class declaration.

I'm guessing that operators can't be declared abstract, but this message makes no sense.

CC @bwilkerson

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.improve-diagnosticsRelated to the quality of diagnostic messages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions