A set of additional tests for complex expressions DFA
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
fun baz(s: String?, u: String?): String {
|
||||
val t = when(s) {
|
||||
is String -> {
|
||||
if (u == null) return <!DEBUG_INFO_SMARTCAST!>s<!>
|
||||
u
|
||||
}
|
||||
else -> {
|
||||
if (u == null) return ""
|
||||
u
|
||||
}
|
||||
}
|
||||
return <!DEBUG_INFO_SMARTCAST!>t<!>
|
||||
}
|
||||
Reference in New Issue
Block a user