Aladdin - Scala Bugtracking
[#251] project: compiler priority: high category: bug
submitter assigned to status date submitted
Stephane Martin fixed 2003-12-08 15:39:49.0
subject ApplicationError in typechecker
code
object Main {
  System.out.println("Math.PI = " + Math.PI)
}
what happened
/home/michelou/tmp> ~/projects/scala/bin/scalac -d /tmp/classes/ Main.scala
Exception in thread "main" scalac.ApplicationError: illegal case: java.lang.String - scala.Double
        at scalac.util.Debug.abort(Debug.java:58)
        at scala.tools.scalac.typechecker.ConstantFolder$$anon$45.apply
          (sources/scala/tools/scalac/typechecker/ConstantFolder.scala:61)
        at scala.tools.scalac.typechecker.ConstantFolder$$anon$45.apply
          (sources/scala/tools/scalac/typechecker/ConstantFolder.scala:27)
what expected no runtime error !
[back to overview]
Changes of this bug report
Philippe  edited on  2003-12-08 16:22:20.0

Added missing case for strings in ConstantFloder.

Philippe  edited on  2003-12-08 16:22:31.0

Added missing case for strings in ConstantFloder.