Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/Condition.kt
T
Alexander Udalov e4cd0e004f Retain data flow info after boolean operations
#KT-2825 In Progress
2012-11-16 17:56:13 +04:00

6 lines
110 B
Kotlin

fun foo(x: Int?): Boolean {
val result = ((x!! == 0) && ((x : Int) == 0))
x : Int
return result
}