Uploaded image for project: 'Scala Programming Language'
  1. Scala Programming Language
  2. SI-5240

Message "error: type _$1 is defined twice" when compiled the second time


    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: Scala 2.9.0, Scala 2.9.1
    • Fix Version/s: None
    • Component/s: Compiler (Misc)
    • Environment:

      I use Mac OS X and sbt with java 6 and scala 2.9.0-final. I have a project that use both java and scala.


      I have a project in java (JaCoP http://sourceforge.net/projects/jacop-solver/) that I add scala wrapper for creating DSL. The scala code contains a number of classes and a package object. Compilation of this scala code works correct the first time but the second time, when doing changes in the code, it reports the following two errors:

      error: type _$1 is defined twice
      error: type _$1 is defined twice

      It does not give any suggestion on possible error Cleaning the project and generating once more the code works correct again.

      I can send the whole code on request but it is rather big. I send for you scala files that work with current version of JaCoP. Everything is on sourceforge.





            • Assignee:
              extempore Paul Phillips
              krzku krzku
            • Votes:
              0 Vote for this issue
              4 Start watching this issue


              • Created: