| [#310] | project: compiler | priority: high | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Stephane | Martin | fixed | 2004-03-16 19:11:51.0 | |
| subject | AssertionError in TreeChecker | |||
| code |
<pre>trait BarBar() {
def apply(): Object = null;
}
object Bar {
def load() = new BarBar() { override def apply() = null; };
}
object Main {
def main(args: Array[String]) = {
val foo = new Object() {
val bar = Bar.load();
def apply() = bar.apply();
};
}
}</pre> |
|||
| what happened | |
|||
| what expected | ||||
| [back to overview] | ||||
| Stephane edited on 2004-03-16 19:12:08.0 |
| Martin edited on 2004-04-15 18:14:06.0 |
| Martin edited on 2004-04-15 18:25:09.0 |
| I fixed by supporessing refinements of value members as these cannot be accessed at the moment. |