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

Presentation compiler reports incorrect error

    Details

      Description

      This test demonstrates how the Presentation Compiler can end up in a stale
      state. In a nutshell, by loading and typechecking first A.scala, and then
      B.scala, the following compilation error is reported in ``B`` compilation unit:

      not enough arguments for constructor C: (key: String, componentStates: String)c.C
      

      The default arguments in C (and potentially also the implicit conversion in A) seem to be playing a part.

      The code for testing this problem is currently sitting in my own fork:

      https://github.com/dotta/scala/tree/topic/presentation-compiler-reports-wrong-error

      Let me know if I should open a pull-request against master right away, or wait until a fix is ready (though, the fix and the test code should ideally be part of the same pull request in the end).

      We also have a related ticket in the Scala IDE issue tracker: http://scala-ide-portfolio.assembla.com/spaces/scala-ide/support/tickets/1000976.

        Activity

        Show
        Lukas Rytz added a comment - fixed in https://github.com/scala/scala/commit/70503355299263f95a3447701bb483375bf46665

          People

          • Assignee:
            Lukas Rytz
            Reporter:
            Mirco Dotta
          • Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development