Files
kotlin-fork/compiler/testData/diagnostics/tests/resolve/nestedCalls/analyzeUnmappedArguments.kt
T
2015-04-29 14:03:11 +03:00

12 lines
214 B
Kotlin
Vendored

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()