Skip to content

Analyzer incorrectly reports this as an unidentified_identifier if followed by an interpolation #50263

@pq

Description

@pq

For example:

class A {
  void f() {
    var foo = '';
    print('$this$foo');
  }
}

reports a diagnostic on $this.

image

FWIW, this is blocking a linter roll into the SDK: https://dart-review.googlesource.com/c/sdk/+/264961

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1A high priority bug; for example, a single project is unusable or has many test failuresdevexp-warningIssues with the analyzer's Warning codeslegacy-area-analyzerUse area-devexp instead.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions