Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/ifCascadeExprNotNull.kt
T
2015-12-11 15:17:37 +03:00

15 lines
248 B
Kotlin
Vendored

fun baz(s: String?): String {
val t = if (s == null) {
""
}
else if (s == "") {
val u: String? = null
if (u == null) return ""
u
}
else {
s
}
return <!DEBUG_INFO_SMARTCAST!>t<!>
}