A set of additional tests for complex expressions DFA

This commit is contained in:
Mikhail Glukhikh
2015-12-11 12:08:36 +03:00
parent d024045638
commit 6fb871a088
13 changed files with 125 additions and 0 deletions
@@ -0,0 +1,11 @@
fun baz(s: String?, b: Boolean?): String {
val t = if (if (b == null) return "" else <!DEBUG_INFO_SMARTCAST!>b<!>) {
if (s == null) return ""
s
}
else {
if (s != null) return <!DEBUG_INFO_SMARTCAST!>s<!>
""
}
return <!DEBUG_INFO_SMARTCAST!>t<!>
}