[FE 1.0] Keep the same type attributes during union or intersection type attributes

^KT-51317 Fixed
This commit is contained in:
Victor Petukhov
2022-05-16 17:17:45 +02:00
parent e009d6a074
commit 88d35067e3
8 changed files with 61 additions and 2 deletions
@@ -0,0 +1,11 @@
val f: (String.() -> String)? = null
fun box(): String {
val g = when {
f != null -> f
else -> {
{ this + "K" }
}
}
return g("O")
}