Extract Function/Introduce Property: Support extraction of string template fragments
This commit is contained in:
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
// EXTRACTION_TARGET: property with initializer
|
||||
val a = 1
|
||||
|
||||
private val i = a + 1
|
||||
|
||||
fun foo(): String {
|
||||
val x = "-$i"
|
||||
val y = "x${i}y"
|
||||
val z = "x${a - 1}y"
|
||||
return "abc${i}def"
|
||||
}
|
||||
Reference in New Issue
Block a user