[#107] | project: compiler | priority: medium | category: bug | |
---|---|---|---|---|
submitter | assigned to | status | date submitted | |
Matthias | Martin | fixed | 2003-09-02 23:40:57.0 | |
subject | Objects must not contain deferred methods | |||
code |
trait C { def foo: Int; } object O extends C { def main(args: Array[String]) = { System.out.println(foo); } } |
|||
what happened | Compiles, but fails at runtime with the following exception:Exception in thread "main" java.lang.AbstractMethodError: O$.foo()I at O$.main(T.scala:6) at O.main(T.scala) |
|||
what expected | Compilation fails since O is incomplete. | |||
[back to overview] |
Martin edited on 2003-09-03 15:02:14.0 |