Uploaded image for project: 'SonarSwift'
  1. SonarSwift
  2. SONARSWIFT-460

Add support for Swift 5.3 Multi-Pattern Catch Clauses

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3
    • Component/s: Parser
    • Labels:
      None

      Description

      See: https://github.com/apple/swift-evolution/blob/master/proposals/0276-multi-pattern-catch-clauses.md

      do {
        try performTask()
      } catch TaskError.someRecoverableError {    // OK
        recover()
      } catch TaskError.someFailure(let msg),
              TaskError.anotherFailure(let msg) { // Also Allowed
        showMessage(msg)
      }
      

        Attachments

          Activity

            People

            Assignee:
            massimo.paladin Massimo PALADIN
            Reporter:
            massimo.paladin Massimo PALADIN
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: