Search: Restrict KtParameter usage scope to its containing declaration
#KT-13542 Fixed #KT-8672 Fixed
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
// a
|
||||
|
||||
val t = "a"
|
||||
|
||||
fun foo(b: Int) {
|
||||
// b
|
||||
val tt = "b"
|
||||
}
|
||||
|
||||
fun test() = foo(b = 1)
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
// a
|
||||
|
||||
val t = "a"
|
||||
|
||||
fun foo(/*rename*/a: Int) {
|
||||
// a
|
||||
val tt = "a"
|
||||
}
|
||||
|
||||
fun test() = foo(a = 1)
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test/test.kt",
|
||||
"newName": "b",
|
||||
"withRuntime": "true"
|
||||
}
|
||||
Reference in New Issue
Block a user