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

Fix parsing error when function argument default is an operator

    XMLWordPrintable

    Details

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

      Description

      Reproducer:

      func fun(with fun:((Int, Int) -> Int) = (+)) -> Int { // Parsing error for the default "(+)"
          return 42
      }
      

        Attachments

          Issue Links

            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: