Change Signature: Support receiver <-> parameter conversion for function expressions

#KT-9309 Fixed
This commit is contained in:
Alexey Sedunov
2015-09-28 16:19:36 +03:00
parent 2b354cd4db
commit b805645489
9 changed files with 90 additions and 14 deletions
@@ -0,0 +1,12 @@
// SHOULD_FAIL_WITH: Parameter reference can't be safely replaced with this since target function can't be referenced in this context
interface T {
val foo: Int
}
val f = fun(<caret>t: T) {
object {
fun f(): Int {
return t.foo
}
}
}