Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/bound/dataFlow.fir.kt
T

14 lines
219 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_VARIABLE
import kotlin.reflect.KClass
fun f1(x: String?): String {
x!!::hashCode
return x
}
fun f2(y: String?): String {
val f: KClass<*> = (y ?: return "")::class
return y
}