Fix intersection type handling in PSI2IR

This commit is contained in:
Dmitry Petrov
2020-02-20 19:13:33 +03:00
parent 1624327ba4
commit e9a7be4a46
16 changed files with 463 additions and 76 deletions
@@ -0,0 +1,20 @@
interface K
interface I : K {
fun ff(): String
}
interface J : K {}
class A: I, J {
override fun ff() = "OK"
}
class B: I, J {
override fun ff() = "Irrelevant"
}
fun box(): String {
val v = if (true) A() else B()
return v.ff()
}