Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/kt32358_3.kt
T

10 lines
223 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
// no inline modifier
fun <R> callIt(fn: () -> R): R = TODO()
fun smartIt(p1: String?, p2: String?) {
p1 ?: callIt { TODO() }
<!DEBUG_INFO_SMARTCAST!>p1<!>.length // smartcast
}