Introduce parameter: Do not substitute references which don't resolve to parameters or receivers of the target function #KT-7965 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_DEFAULT_VALUE: false
|
||||
fun a() {
|
||||
1.b(2)
|
||||
}
|
||||
|
||||
fun Int.foo(f: Int.(Int) -> Int) = this
|
||||
|
||||
fun Int.b(n: Int) = <selection>n.foo { it + this + n + this@b }</selection> + 1
|
||||
Reference in New Issue
Block a user