ed8ccdc15a
Smart casts on complex expressions look as no more possible
11 lines
298 B
Kotlin
Vendored
11 lines
298 B
Kotlin
Vendored
fun baz(s: String?, b: Boolean?): String {
|
|
val t = if (if (b == null) return "" else <!DEBUG_INFO_SMARTCAST!>b<!>) {
|
|
if (s == null) return ""
|
|
<!DEBUG_INFO_SMARTCAST!>s<!>
|
|
}
|
|
else {
|
|
if (s != null) return <!DEBUG_INFO_SMARTCAST!>s<!>
|
|
""
|
|
}
|
|
return t
|
|
} |