Aladdin - Scala Bugtracking
[#244] project: compiler priority: low category: bug
submitter assigned to status date submitted
Erik Matthias open 2003-12-01 16:17:15.0
subject Non-separate compilation does not always work
code
what happened
scalac -separate:no -classpath ./classes -d ./classes 'sources/scala/tools/dtd2scala/DeclToScala.scala'  'source\
s/scala/tools/dtd2scala/DeclToSQL.scala' 'sources/scala/tools/dtd2scala/regexp/Scanner.scala'
/home/stenman/sync/scala/sources/scalac/ast/parser/Scanner.scala:746: 'while' expected but 'for' found.
      key(i) = IDENTIFIER;
                          ^
/home/stenman/sync/scala/sources/scalac/ast/parser/Scanner.scala:748: '(' expected but ';' found.
      if (tokenName(j) != null) key(tokenName(j).index) = j.asInstanceOf[byte];
                                                                              ^
sources/scala/tools/dtd2scala/DeclToScala.scala:188: wrong number of arguments for constructor scalac.ast.parser\
.Scanner(scalac.Unit)
  private val toy:Scanner = new Scanner();
                                       ^
sources/scala/tools/dtd2scala/DeclToSQL.scala:41: expected pattern type scala.tools.dtd2scala.regexp.RegExp does\
 not conform to sequence trait scala.Seq
      case Seq( rs@_* ) => rs.map( mults ); { }
           ^
sources/scala/tools/dtd2scala/DeclToSQL.scala:48: expected pattern type scala.tools.dtd2scala.regexp.RegExp does\
 not conform to sequence trait scala.Seq
      case Seq( rs@_* ) => rs.map( singles ); { }
           ^
/home/stenman/sync/scala/sources/scala/Symbol.scala:25: `*' parameter must be the only parameter of a `('...`)' \
section
case class Symbol(name: String, elems: Any*) {
                                ^
/home/stenman/sync/scala/sources/scala/xml/nobinding/NoBindingFactoryAdapter.scala:21: wrong number of arguments\
 for method scala.Symbol(java.lang.String,scala.Seq[scala.Any])
          val el = new Element( Symbol( label ), children ) {
                                      ^
7 errors found
what expected Succesful compilation as with separate compialtion turned on > scalac -classpath ./classes -d ./classes 'sources/scala/tools/dtd2scala/DeclToScala.scala' 'sources/scala/tools/dtd2scala/DeclToSQL.scala' 'sources/scala/tools/dtd2scala/regexp/Scanner.scala' [lamppc35]scala 1076 >
[back to overview]
Changes of this bug report
Erik  edited on  2003-12-01 16:17:44.0