Search: Restrict KtParameter usage scope to its containing declaration

#KT-13542 Fixed
 #KT-8672 Fixed
This commit is contained in:
Alexey Sedunov
2016-08-22 11:30:19 +03:00
parent 6480118da6
commit e908c6c1b2
6 changed files with 49 additions and 3 deletions
@@ -0,0 +1,12 @@
package test
// a
val t = "a"
fun foo(b: Int) {
// b
val tt = "b"
}
fun test() = foo(b = 1)
@@ -0,0 +1,12 @@
package test
// a
val t = "a"
fun foo(/*rename*/a: Int) {
// a
val tt = "a"
}
fun test() = foo(a = 1)
@@ -0,0 +1,6 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test/test.kt",
"newName": "b",
"withRuntime": "true"
}