Change Signature: Support receiver <-> parameter conversion for function expressions
#KT-9309 Fixed
This commit is contained in:
+12
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user