Fixed: analyze unmapped (or with no callee) functional arguments with right context.

This commit is contained in:
svtk
2013-11-21 21:43:59 +04:00
parent ae3331717e
commit 1bfca62592
3 changed files with 23 additions and 10 deletions
@@ -0,0 +1,12 @@
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()