[FE 1.0] Keep the same type attributes during union or intersection type attributes
^KT-51317 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
val f: (String.() -> String)? = null
|
||||
|
||||
fun box(): String {
|
||||
val g = when {
|
||||
f != null -> f
|
||||
else -> {
|
||||
{ this + "K" }
|
||||
}
|
||||
}
|
||||
return g("O")
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
val f: (String.() -> String)? = null
|
||||
|
||||
fun box(): String {
|
||||
val g = when {
|
||||
f != null -> <!DEBUG_INFO_SMARTCAST!>f<!>
|
||||
else -> {
|
||||
{ this + "K" }
|
||||
}
|
||||
}
|
||||
return g("O")
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package
|
||||
|
||||
public val f: (kotlin.String.() -> kotlin.String)? = null
|
||||
public fun box(): kotlin.String
|
||||
Reference in New Issue
Block a user