c295f2dc25
Make it works through a single component tracking computation status instead of storing it in the nodes
30 lines
384 B
Kotlin
Vendored
30 lines
384 B
Kotlin
Vendored
// !WITH_NEW_INFERENCE
|
|
// NI_EXPECTED_FILE
|
|
// JET-81 Assertion fails when processing self-referring anonymous objects
|
|
|
|
class Test {
|
|
private val y = object {
|
|
val a = y;
|
|
}
|
|
|
|
val z = y.a;
|
|
|
|
}
|
|
|
|
object A {
|
|
val x = A
|
|
}
|
|
|
|
class Test2 {
|
|
private val a = object {
|
|
init {
|
|
b + 1
|
|
}
|
|
val x = b
|
|
val y = 1
|
|
}
|
|
|
|
val b = a.<!UNRESOLVED_REFERENCE!>x<!>
|
|
val c = a.y
|
|
}
|