Files
kotlin-fork/compiler/testData/diagnostics/tests/script/destructuringDeclarationsScript.fir.kts
T
Dmitrii Gridin c090ae96ab [LL FIR] update attached issue
^KT-66352
2024-03-06 16:13:09 +00:00

20 lines
403 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
// MUTE_LL_FIR
// DUMP_CFG: LEVELS
// KT-66352
val (a1, a2) = A()
val (b1: Int, b2: Int) = <!COMPONENT_FUNCTION_RETURN_TYPE_MISMATCH!>A()<!>
val (c1) = <!COMPONENT_FUNCTION_MISSING, UNRESOLVED_REFERENCE!>unresolved<!>
<!WRONG_MODIFIER_TARGET!>private<!> val (d1) = A()
val (e1, _) = A()
a1
a2
e1
class A {
operator fun component1() = 1
operator fun component2() = ""
}