Skip to content

Quick fix for @mustCallSuper doesn't work with multiple parameters #59745

@gaaclarke

Description

@gaaclarke

steps to reproduce

  1. Get in a situation where you must call super on a method with multiple parameters
  2. Select the first Quick Fix which should insert the call

observed result

The inserted fix was super.onCollision(other); with one argument.

expected result

super.onCollision(points, other); with two arguments.

screenshots

before

Screenshot 2024-12-17 at 10 14 25 AM

quick fix options

Screenshot 2024-12-17 at 10 17 12 AM

after

Screenshot 2024-12-17 at 10 14 35 AM

doctor

[!] Flutter (Channel [user-branch], 3.27.0-1.0.pre.644, on macOS 14.7.1 23H222 darwin-arm64, locale en)
    ! Flutter version 3.27.0-1.0.pre.644 on channel [user-branch] at /Users/aaclarke/dev/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/setup.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
    • Framework revision f3f72ede04 (3 weeks ago), 2024-11-25 16:14:30 -0800
    • Engine revision fe45a66086
    • Dart version 3.7.0 (build 3.7.0-183.0.dev)
    • DevTools version 2.41.0-dev.2
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform
      update checks and upgrades.

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work ondevexp-quick-fixIssues with analysis server (quick) fixeslegacy-area-analyzerUse area-devexp instead.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