Scala Programming Language
  1. Scala Programming Language
  2. SI-8001

spurious "pure expression does nothing" warning

    Details

      Description

      class C {
        (): Unit
      }
      
      22:06 ~/Projects/master/sandbox (master)$ s
      Test.scala:3: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
        (): Unit
          ^
      one warning found
      

        Activity

        Hide
        Eugene Burmako added a comment - - edited
        Show
        Eugene Burmako added a comment - - edited https://github.com/scala/scala/pull/3183

          People

          • Assignee:
            Eugene Burmako
            Reporter:
            Eugene Burmako
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development