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
7 lines
189 B
Kotlin
Vendored
7 lines
189 B
Kotlin
Vendored
fun test(obj: Any): String {
|
|
return when {
|
|
obj !is Iterable<*> -> "not iterable"
|
|
<expr>obj</expr> !is Collection<*> -> "not collection"
|
|
else -> "unknown"
|
|
}
|
|
} |