Skip to content

Missing warning on partially-unused record destruction #60082

@ChaserVasya

Description

@ChaserVasya

Snippet

void main() {
  final (a,b) = fn();
  print(a);
}

(int,int) fn(){
  return (1,2);
}

Expected

Warning The value of the local variable 'b' isn't used. .

Actual

Nothing.
Image

Context

Dart SDK version: 3.5.4 (stable) (Wed Oct 16 16:18:51 2024 +0000) on "macos_arm64"

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-warningIssues with the analyzer's Warning codesfeature-wildcard-variablesImplementation of the wildcard variables featuretype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions