Files
kotlin-fork/compiler/testData/diagnostics/tests/regressions/Jet81.fir.kt
T
Denis Zharkov c295f2dc25 FIR: Reimplement implicit types calculator
Make it works through a single component tracking computation status
instead of storing it in the nodes
2020-01-28 17:03:50 +03:00

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
}