Files
kotlin-fork/compiler/testData/diagnostics/tests/kt54587_1.kt
T
Nikolay Lunyak a454d42e65 [FIR] KT-54587: Report the missing diagnostics
^KT-54587 Fixed

Merge-request: KT-MR-7791
Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com>
2022-11-25 10:19:58 +00:00

13 lines
313 B
Kotlin
Vendored

// FIR_IDENTICAL
class MyClass
class SomeClass
operator fun SomeClass.component1() {}
operator fun SomeClass.component2() {}
fun test() {
val (o, o2) = SomeClass()
val (o3, o4) = <!COMPONENT_FUNCTION_MISSING, COMPONENT_FUNCTION_MISSING!>MyClass()<!> // [COMPONENT_FUNCTION_MISSING] expected as in K1
}