Inline refactoring: fix case with introduction of variable to return
#KT-39818 Fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
fun downUnder(): Int = 4
|
||||
fun downParameter<caret>(p: Int): Int {
|
||||
"first $p"
|
||||
"second $p"
|
||||
p
|
||||
return p
|
||||
}
|
||||
fun callDown() {
|
||||
val result = downParameter(downUnder())
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fun downUnder(): Int = 4
|
||||
fun callDown() {
|
||||
val p = downUnder()
|
||||
"first ${p}"
|
||||
"second ${p}"
|
||||
p
|
||||
val result = p
|
||||
}
|
||||
Reference in New Issue
Block a user