Files
kotlin-fork/idea/testData/resolve/references/MultiDeclarationReference.kt
T
Pavel V. Talanov 6f2ed9a5a9 Add JetMultiDeclarationReference
A reference to component* functions
2014-03-06 16:01:02 +04:00

16 lines
220 B
Kotlin

package a
class A() {
}
fun A.component1() = 1
fun A.component2() = 1
fun main(args: Array<String>) {
val (a,<caret> b) = A()
}
// MULTIRESOLVE
// REF: (for A in a).component1()
// REF: (for A in a).component2()