Files
kotlin-fork/idea/testData/checker/regression/Jet81.kt
T

27 lines
412 B
Kotlin

// JET-81 Assertion fails when processing self-referring anonymous objects
class Test {
private val y = object {
val a = <error>y</error>
}
val z = y.<error>a</error>;
}
object A {
val x = A
}
class Test2 {
private val a = object {
{
<error>b</error> <error>+</error> 1
}
val x = <error>b</error>
val y = 1
}
val b = <error>a</error>.<error>x</error>
val c = a.y
}