Skip to content

"extents" instead of "extends" generates a large number of confusing error messages in the analyzer #44132

Open
@Hixie

Description

@Hixie

The following code has a one-character typo:

class A {
  A(this.foo);
  final int foo;
}

class B extents A {
  B(int foo) : super(foo);
  
  int bar() {
    return foo;
  }
}

...and triggers at least 15 errors in the analyzer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4analyzer-recoveryarea-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.model-error-recoveryError recovery in analyzer/CFE.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions