Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/BinaryExpressionEqualsConvention.kt
T
Alexander Udalov 3358108c3f Retain data flow info after == (equals)
#KT-2825 In Progress
2012-11-16 17:56:11 +04:00

15 lines
208 B
Kotlin

trait A
trait B : A
fun foo1(a: A, b: B): Boolean {
val result = (a as B) == b
a : B
return result
}
fun foo2(a: A, b: B): Boolean {
val result = b == (a as B)
a : B
return result
}