Test and implementation for KT-6819. Now when entry condition data flow information is used for subsequent conditions. #KT-6819 Fixed

This commit is contained in:
Mikhail Glukhikh
2015-04-07 17:20:11 +03:00
parent cd206fc97b
commit 27b1f1ddad
4 changed files with 19 additions and 1 deletions
@@ -0,0 +1,7 @@
public fun test(o: String?): Boolean {
return when {
// Data flow info should propagate from o == null to o.length()
o == null, <!DEBUG_INFO_SMARTCAST!>o<!>.length() == 0 -> false
else -> true
}
}
@@ -0,0 +1,3 @@
package
public fun test(/*0*/ o: kotlin.String?): kotlin.Boolean