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

SIP-18 produces incorrect count of suppressed warnings

    Details

      Description

      When SIP-18 warnings are not displayed, scalac may produce an incorrect count. For example:

      
      dcs@shadowfax:~/tmp/ForwardPipe$ scalac PostFix.scala 
      warning: there were 2 feature warnings; re-run with -feature for details
      one warning found
      dcs@shadowfax:~/tmp/ForwardPipe$ scalac -feature PostFix.scala 
      PostFix.scala:4: warning: postfix operator != should be enabled
      by making the implicit value language.postfixOps visible.
      This can be achieved by adding the import clause 'import language.postfixOps'
      or by setting the compiler option -language:postfixOps.
      See the Scala docs for value scala.language.postfixOps for a discussion
      why the feature should be explicitly enabled.
          val a = list filter (2 !=)
                                 ^
      one warning found
      

      (file attached)

        Activity

        Hide
        Adriaan Moors added a comment -

        Hubert, could you please have a look or re-assign?

        Show
        Adriaan Moors added a comment - Hubert, could you please have a look or re-assign?
        Show
        Jason Zaugg added a comment - https://github.com/scala/scala/pull/2067
        Hide
        James Iry added a comment -
        Show
        James Iry added a comment - superseded by https://github.com/scala/scala/pull/2095

          People

          • Assignee:
            Jason Zaugg
            Reporter:
            Daniel Sobral
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development