Retain data flow info after == (equals)

#KT-2825 In Progress
This commit is contained in:
Alexander Udalov
2012-11-12 17:49:27 +04:00
parent 1fbe9b9a31
commit 3358108c3f
3 changed files with 26 additions and 2 deletions
@@ -0,0 +1,14 @@
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
}