[FIR] Handle ConeIntersectionType in createSimpleType
^KT-62819 Fixed
This commit is contained in:
committed by
Space Team
parent
11586975e8
commit
3188f01720
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user