Files
aleksandrina-streltsova 0e1fbc8917 [kotlin] K2 Introduce variable: enable extracting substring
^KTIJ-27960 Fixed
Existing tests in `K2IntroduceVariableTestGenerated.StringTemplates` don't pass because "Introduce Variable" in K2 doesn't support multiple occurrences at the moment (KTIJ-27861)

GitOrigin-RevId: a4b3817cd3c5c5b673b1c1bc1de8d4f8e65df68b
2024-01-17 13:00:17 +00:00

7 lines
128 B
Kotlin

// INPLACE_VARIABLE_NAME: xxx
fun a() {
return when (1) {
is 1 -> <selection>2</selection>
else -> 3
}
}