Fix intersection type handling in PSI2IR
This commit is contained in:
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user