[#302] | project: compiler | priority: low | category: bug | |
---|---|---|---|---|
submitter | assigned to | status | date submitted | |
Philippe | Martin | fixed | 2004-03-02 17:31:31.0 | |
subject | side-effects in secondary constructors of traits | |||
code |
trait A(i: Int) { def this() = { this(0); System.out.println(32); } } |
|||
what happened | no error |
|||
what expected | an error message: trait constructors may not have side-effects | |||
[back to overview] |
Martin edited on 2004-04-18 18:48:59.0 |