sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Pattern destruction missing keyword/type completion on inner pattern member suggestion

Open FMorschel opened this issue 5 months ago • 0 comments

Repro:

class A {
  A([this.a]);
  A? a;
}

void main() {
  final a = A(A(A()));
  if (a case A(a: A(:^))) {}
}

This should show a and also add var in front, but this inner case doesn't seem to have been resolved correctly by https://github.com/dart-lang/sdk/issues/60604. I'll take a look at this.

FMorschel avatar Jun 13 '25 16:06 FMorschel