Extract Function: Do not suggest "unit" as function name
#KT-6402 Fixed
This commit is contained in:
+2
-2
@@ -8,13 +8,13 @@ fun foo(a: Int) {
|
||||
val b: Int = 1
|
||||
|
||||
val c: Int
|
||||
unit(a, b)
|
||||
__dummyTestFun__(a, b)
|
||||
|
||||
c = 1
|
||||
println(c)
|
||||
}
|
||||
|
||||
private fun unit(a: Int, b: Int) {
|
||||
private fun __dummyTestFun__(a: Int, b: Int) {
|
||||
if (a > 0) {
|
||||
println(a)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user