Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlow/local/LocalClassDelegatedProperties.kt
T
2013-12-11 19:53:50 +04:00

17 lines
338 B
Kotlin

class Del {
fun get(<!UNUSED_PARAMETER!>_this<!>: Any?, <!UNUSED_PARAMETER!>p<!>: PropertyMetadata): Int = 0
}
fun df(del: Del): Del = del
fun test(del: Any?) {
if (del !is Del) return
class Local {
val delegatedVal by df(<!DEBUG_INFO_AUTOCAST!>del<!>)
val delegatedVal1: Int by df(<!DEBUG_INFO_AUTOCAST!>del<!>)
}
}