[#99] | project: compiler | priority: medium | category: bug | |
---|---|---|---|---|
submitter | assigned to | status | date submitted | |
Matthias | Martin | fixed | 2003-09-02 15:26:45.0 | |
subject | Case objects broken | |||
code |
object Test { def main(args: Array[String]) = { System.out.println(MyCase); } } case object MyCase; |
|||
what happened | Compiles and runs, producing the following output:MyCase$@7a8913 |
|||
what expected | The compiler is supposed to add methods like equals, toString, etc. to case objects. Currently, it doesn't. This has also consequences for the pattern matcher, because case objects do not have an associated tag. I have the impression that somewhere in the compiler, the case modifier is silently dropped. | |||
[back to overview] |
Martin edited on 2003-09-02 19:10:52.0 |