Rename: Warn about function name conflicts
#KT-13239 Fixed
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
fun /*rename*/namedFunA() {}
|
||||
fun namedFunB() {}
|
||||
|
||||
fun useNames() {
|
||||
namedFunA()
|
||||
namedFunB()
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test/test.kt",
|
||||
"newName": "namedFunB",
|
||||
"withRuntime": "true",
|
||||
"hint": "Function 'namedFunB' is already declared in package 'test'"
|
||||
}
|
||||
Reference in New Issue
Block a user