| [#51] | project: compiler | priority: medium | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Stephane | Martin | fixed | 2003-07-01 10:52:37.0 | |
| subject | AssertionError | |||
| code |
class A(_name: String) {
private var name: String = _name;
constr A() = { name = "john"; };
override def toString() = name;
}
object Main {
def main(args: Array[String]) = {
val paul = new A("paul");
System.out.println(paul);
}
}
|
|||
| what happened | Exception in thread "main" java.lang.AssertionError: A.A is not a class (kind 5)
at [..].needInterface(AddInterfacesPhase.java:166)
at [..].transformInfo(AddInterfacesPhase.java:39)
..
|
|||
| what expected | compiler error message | |||
| [back to overview] | ||||
| Martin edited on 2003-07-04 16:52:00.0 |