Extract Function/Introduce Property: Support extraction of string template fragments
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// PARAM_DESCRIPTOR: value-parameter val a: kotlin.Int defined in foo
|
||||
// PARAM_TYPES: kotlin.Int
|
||||
fun foo(a: Int): String {
|
||||
val x = "-${i(a)}"
|
||||
val y = "x${i(a)}y"
|
||||
val z = "x${a - 1}y"
|
||||
return "abc${i(a)}def"
|
||||
}
|
||||
|
||||
private fun i(a: Int) = a + 1
|
||||
Reference in New Issue
Block a user