[FIR] Handle ConeIntersectionType in createSimpleType

^KT-62819 Fixed
This commit is contained in:
Ivan Kochurkin
2023-11-02 21:09:39 +01:00
committed by Space Team
parent 11586975e8
commit 3188f01720
7 changed files with 54 additions and 1 deletions
@@ -0,0 +1,16 @@
// FIR_IDENTICAL
// ISSUE: KT-62819
class A<T>
fun foo(cond: Boolean) {
val first = when (cond) {
true -> A<Int>()
false -> A<String?>()
}
val second = when (cond) {
true -> first
false -> first
}
}