513af2dfbc
Make smart-casts non-transparent expression without delegation to underlying FirQualifiedAccessExpression, as children delegation in fir tree has unclear semantics Remove two different kinds of tree nodes for smart-casts
10 lines
151 B
Kotlin
Vendored
10 lines
151 B
Kotlin
Vendored
interface WithInvoke {
|
|
operator fun invoke() {}
|
|
}
|
|
|
|
fun foo(parameter: Any) {
|
|
if (parameter is WithInvoke) {
|
|
<caret>parameter()
|
|
}
|
|
}
|