blob: cec37d87a7011f9aea642c8d65e9e3de87f7c042 [file]
// RUN_PIPELINE_TILL: CODEGEN
// ISSUE: KT-45316
interface R
fun takeInt(x: Int) {}
fun test(fn: R.() -> String) { // (1)
val renderer = object : R {
fun render(fn: R.() -> Int) { // (2)
val result = fn()
takeInt(result)
}
}
}
/* GENERATED_FIR_TAGS: anonymousObjectExpression, functionDeclaration, functionalType, interfaceDeclaration,
localProperty, propertyDeclaration, typeWithExtension */