Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/kt5427.kt
T
Mikhail Glukhikh 1544755838 Test refactoring
2015-04-14 19:11:26 +03:00

6 lines
157 B
Kotlin
Vendored

fun foo(p: String?): Int {
// We should get smart cast here
val x = if (p != null) { <!DEBUG_INFO_SMARTCAST!>p<!> } else "a"
return x.length()
}