Files
kotlin-fork/analysis/low-level-api-fir/testdata/contextCollector/smartCasts/argumentAsReceiver.kt
T
2023-09-04 15:47:56 +00:00

12 lines
193 B
Kotlin

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