| [#845] | project: compiler | priority: low | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Sean | Martin | fixed | 2006-11-29 12:12:19.0 | |
| subject | Compiler exhausts heap on bugged code | |||
| code |
package test;
object Test extends Application {
type Bar;
trait FooImpl;
trait Bob {
def bar : Bar with FooImpl;
}
def ifn[A,B](a : A)(f : A => B) =
if (a != null) f(a) else null;
val bob : Bob = null;
val bar = ifn(bob)(.bar);
assert(bar == null);
} |
|||
| what happened | |
|||
| what expected | ||||
| [back to overview] | ||||
| Martin edited on 2006-12-01 18:35:01.0 |