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

Incomplete error reporting for "unknown annotation argument name: value"

    Details

      Description

      Consider compiling the following code with either 2.9.1 or scala-2.10.0.r25912-b20111031024940

      class test {
       @java.lang.Deprecated(qwe = "wer")def ok(q:Int) = 1
       @java.lang.Deprecated("wer")def whereAmI(q:Int) = 1
      }
      

      You will get the following messages from compiler:

      test.scala:2: error: unknown annotation argument name: qwe
       @java.lang.Deprecated(qwe = "wer")def ok(q:Int) = 1
                                 ^
      error: unknown annotation argument name: value
      two errors found
      

      the first one is ok, but the second doesn't show which line or file it is referring

        Activity

        Hide
        Paul Phillips added a comment -

        801eab5501

        Show
        Paul Phillips added a comment - 801eab5501

          People

          • Assignee:
            Paul Phillips
            Reporter:
            Oleg Aleshko
          • Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development