Skip to content

[wildcards] Consider quick fix: convert UNUSED_CATCH_CLAUSE to wildcard #55980

Closed
@pq

Description

@pq

Specifically,

f() {
  try {
  } on String catch (exception) {
  }
}

might be fixed to:

f() {
  try {
  } on String catch (_) {
  }
}

in addition to the current fix which removes the clause altogether:

f() {
  try {
  } on String {
  }
}

Question: does such a fix add value?

@kallentu @bwilkerson

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work ondevexp-quick-fixIssues with analysis server (quick) fixesfeature-wildcard-variablesImplementation of the wildcard variables featurelegacy-area-analyzerUse area-devexp instead.type-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