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

Parse Error: preprocessor directive could be used inside declaration

    XMLWordPrintable

    Details

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

      Description

      As preprocessor directive could be used inside declaration it should appear not only in STATEMENT rule, but it DECLARATION too.

      class A{
        #if os()
      }
      

        Attachments

          Activity

            People

            Assignee:
            elena.vilchik Elena Vilchik
            Reporter:
            elena.vilchik Elena Vilchik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: