Files
kotlin-fork/idea/testData/findUsages/kotlin/conventions/components/dataClass.0.kt
T
2020-09-25 17:26:22 +03:00

30 lines
477 B
Kotlin
Vendored

// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtParameter
// OPTIONS: usages
// FIR_IGNORE
package pack
data class A(val <caret>n: Int, val s: String, val o: Any) {
fun f() {
"a".apply {
this@A.toString()
}
}
}
abstract class X : Comparable<A>
fun A.ext1() {
val (x, y) = getThis()
}
/**
* Doc-comment reference 1: [A]
* Doc-comment reference 2: [ext1]
*/
fun List<A>.ext1() {
val (x, y) = get(0)
}
fun <T> T.getThis(): T = this