Analyze Data Flow: Respect member hierarchies

#KT-11994 In Progress
This commit is contained in:
Alexey Sedunov
2017-05-31 21:35:55 +03:00
parent 49da81f681
commit ff5a52b445
32 changed files with 546 additions and 46 deletions
@@ -0,0 +1,24 @@
// FLOW: IN
interface A {
fun foo() = 1
}
open class B : A {
override fun foo() = 2
}
interface C : A {
override fun foo() = 3
}
class D : B(), C {
override fun foo() = 4
}
fun test(a: A, b: B, c: C, d: D) {
val x = a.foo()
val <caret>y = b.foo()
val z = c.foo()
val u = d.foo()
}