Skip to content

Deprecated problems on parameters #62066

@FMorschel

Description

@FMorschel

We now have two problems here. Passing values to deprecated parameters doesn't show any diagnostics, and there is no indication on completion either.

Repro:

void foo({@Deprecated('Not used') int? parameter}) {
  foo(parameter: 0);
  foo(parameter: 0);
}
Image

I'd say this is probably worth the CP once fixed, since it may lead to people using deprecated parameters.

CC @bwilkerson @srawlins @lrhn

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-warningIssues with the analyzer's Warning codestype-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