Files
kotlin-fork/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.fir.kt
T
Denis.Zharkov 2ecba6ac39 Remove WITH_NEW_INFERENCE directive from all tests
This directive anyway does not make test run twice with OI, and with NI
It only once run the test with specific settings (// LANGUAGE)
and ignores irrelevant (OI or NI tags)
2021-05-25 13:28:26 +03:00

20 lines
344 B
Kotlin
Vendored

// !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() = id(<!ARGUMENT_TYPE_MISMATCH!>z1<!>)
val z2 get() = l(<!ARGUMENT_TYPE_MISMATCH!>z2<!>)
val u get() = <!UNRESOLVED_REFERENCE!>field<!>
}
fun <E> id(x: E) = x
fun <E> l(x: E): List<E> = null!!