JET-81 Assertion fails when processing in self-referring anonymous objects

This commit is contained in:
Andrey Breslav
2011-06-03 17:11:27 +04:00
parent 2446179949
commit 2350a8a731
2 changed files with 37 additions and 6 deletions
@@ -0,0 +1,22 @@
// JET-81 Assertion fails when processing self-referring anonymous objects
val y = object {
val a = y;
}
val z = y.a;
object A {
val x = A
}
val a = object {
{
b + 1
}
val x = <error>b</error>
val y = 1
}
val b = a.x
val c = a.y