Files
kotlin-fork/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.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

21 lines
340 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
// !CHECK_TYPE
// NI_EXPECTED_FILE
val x get() = x
class A {
val y get() = y
val a get() = b
val b get() = a
val z1 get() = <!INAPPLICABLE_CANDIDATE!>id<!>(z1)
val z2 get() = <!INAPPLICABLE_CANDIDATE!>l<!>(z2)
val u get() = field
}
fun <E> id(x: E) = x
fun <E> l(x: E): List<E> = null!!