20 lines
544 B
Kotlin
Vendored
20 lines
544 B
Kotlin
Vendored
// !DUMP_CFG
|
|
|
|
interface FirBase
|
|
interface FirFunctionCall : FirBase
|
|
|
|
|
|
fun foo(statements: List<FirBase>, arguments: List<FirBase>, explicitReceiver: FirBase): List<FirFunctionCall> {
|
|
|
|
val firstCalls = with(statements.last() as FirFunctionCall) setCall@{
|
|
<!OPT_IN_USAGE_ERROR!>buildList<!> {
|
|
add(this@setCall)
|
|
with(arguments.last() as FirFunctionCall) plusCall@{
|
|
add(this@plusCall)
|
|
add(explicitReceiver as FirFunctionCall)
|
|
}
|
|
}
|
|
}
|
|
|
|
return firstCalls
|
|
} |