[#329] | project: compiler | priority: high | category: bug | |
---|---|---|---|---|
submitter | assigned to | status | date submitted | |
Burak | Martin | fixed | 2004-05-07 13:12:37.0 | |
subject | crash in type inference | |||
code |
import scala.collection._; object foo { val snafu = immutable.TreeMap.Empty; } |
|||
what happened | Exception in thread "main" scalac.ApplicationError: illegal case: |
|||
what expected | an error message telling me that Empty does not exist (the right thing would have been "empty", in lowercase). | |||
[back to overview] |
Burak edited on 2004-05-07 13:20:57.0 |
further simplification. original code was
val bar:Map[Int,Set[Int]] = immutable.TreeMap.Empty[Int,immutable.Set[Int]]; val baz = immutable.TreeMap.Empty[Int,immutable.Set[Int]]; |
Burak edited on 2004-05-07 13:22:41.0 |
(parts of stacktrace were missing) |
Burak edited on 2004-05-07 13:31:31.0 |
I corrected the "what expected" entry of this bug report, after realizing that Empty does not exist. |
Martin edited on 2004-05-13 12:55:13.0 |