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
18 lines
288 B
Kotlin
Vendored
18 lines
288 B
Kotlin
Vendored
interface Foo {
|
|
fun Bar.foo()
|
|
}
|
|
|
|
interface Bar {}
|
|
|
|
inline fun <T, R> myWith(argument: T, lambda: T.() -> R): R {
|
|
argument.lambda()
|
|
}
|
|
|
|
fun Any.action(other: Any) {
|
|
if (this is Foo) {
|
|
with(other) {
|
|
this as Bar
|
|
<expr>foo</expr>()
|
|
}
|
|
}
|
|
} |