Files
kotlin-fork/compiler/testData/diagnostics/tests/resolve/nestedCalls/analyzeUnmappedArguments.kt
T

12 lines
214 B
Kotlin

package c
fun test() {
with (1) @l {
foo(1, <!NAMED_PARAMETER_NOT_FOUND!>zz<!> = { this@l } )
}
}
fun foo(x: Int) = x
// from library
fun <T, R> with(receiver: T, f: T.() -> R) : R = receiver.f()