Aladdin - Scala Bugtracking
[#94] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Philippe Martin fixed 2003-08-28 09:46:42.0
subject error message changes when separate compilation is used
code
import scala.collection.mutable._;

object Composites {
    def main(args: Array[String]) = {
        val weekDays : Set[String] = Set("Mon", "Tue", "Wed", "Thu", "Fri");
    }
}
what happened
$ scalarun test/neg/bug72.scala -separate:yes
test/neg/bug72.scala:5: object scala.collection.mutable.Set of type scala.collec
tion.mutable.Set cannot be applied to (java.lang.String,java.lang.String,java.la
ng.String,java.lang.String,java.lang.String) with expected result type scala.col
lection.mutable.Set[java.lang.String]
        val weekDays : Set[String] = Set("Mon", "Tue", "Wed", "Thu", "Fri");
                                        ^
one error found

$ scalarun test/neg/bug72.scala -separate:no
test/neg/bug72.scala:5: not found: value Set
        val weekDays : Set[String] = Set("Mon", "Tue", "Wed", "Thu", "Fri");
                                     ^
one error found
what expected compilation with and without separate compilation should give the same error message.
[back to overview]
Changes of this bug report
Philippe  edited on  2003-08-28 09:47:36.0
Philippe  edited on  2003-08-28 09:48:14.0
Martin  edited on  2003-08-28 14:29:24.0