Extract Function: Generate function in property's enclosing declaration if original expression belongs to initializer of that property
#KT-6290 Fixed
This commit is contained in:
+4
-4
@@ -1,8 +1,8 @@
|
||||
fun foo() {
|
||||
fun i(): Int {
|
||||
return 1 + 1
|
||||
}
|
||||
|
||||
val x = i()
|
||||
val y = i()
|
||||
}
|
||||
|
||||
private fun i(): Int {
|
||||
return 1 + 1
|
||||
}
|
||||
Reference in New Issue
Block a user