Skip to content

[analyzer] implicit_super_initializer_missing_arguments fix for super_parameters #50293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
asashour opened this issue Oct 25, 2022 · 1 comment
Labels
devexp-quick-fix Issues with analysis server (quick) fixes legacy-area-analyzer Use area-devexp instead. P2 A bug or feature request we're likely to work on

Comments

@asashour
Copy link
Contributor

asashour commented Oct 25, 2022

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

class B extends A {
  B();
}

There is an offered fix for implicit_super_initializer_missing_arguments to be

B() : super(0);

But I guess another fix should also be offered to

B(super.a);

(when super_parameters is enabled, of course).

@asashour asashour changed the title [analyzer] AddSuperConstructorInvocation to handle super_parameters [analyzer] implicit_super_initializer_missing_arguments fix for super_parameters Oct 25, 2022
@bwilkerson bwilkerson added legacy-area-analyzer Use area-devexp instead. devexp-quick-fix Issues with analysis server (quick) fixes P2 A bug or feature request we're likely to work on labels Oct 25, 2022
@asashour
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devexp-quick-fix Issues with analysis server (quick) fixes legacy-area-analyzer Use area-devexp instead. P2 A bug or feature request we're likely to work on
Projects
None yet
Development

No branches or pull requests

2 participants