Files
kotlin-fork/analysis/low-level-api-fir/testdata/contextCollector/smartCastReceiverArgument.kt
T
2023-08-07 16:22:02 +00:00

12 lines
193 B
Kotlin

interface Foo {}
interface Bar {}
fun test(obj: Any) {
if (obj is Foo) {
if (obj is Bar) {
obj.consume(<expr>obj</expr>)
}
}
}
fun Bar.consume(obj: Foo) {}