[kotlin] Align k2 test data with k1

#KTIJ-22991 Fixed

GitOrigin-RevId: 119306382462b3613d4fa773ccccfa33b8f44936
This commit is contained in:
Vladimir Dolzhenko
2024-07-06 21:18:57 +00:00
committed by intellij-monorepo-bot
parent ae53390ee5
commit dc0cbaaf38
5 changed files with 1 additions and 25 deletions
@@ -1,6 +0,0 @@
fun foo(a: Int, b: Int) = a + b
fun foo() {
val foo = foo(1 + 2, 3 * 4) //
// AFTER-WARNING: Variable 'foo' is never used
}
@@ -1,6 +0,0 @@
// AFTER-WARNING: Variable 'foo' is never used
fun foo(a: Int, b: Int) = a + b
fun foo() {
val foo = foo(1 + 2, 3 * 4)
}
@@ -1,6 +0,0 @@
// AFTER-WARNING: Variable 'foo' is never used
fun foo(a: Int, b: Int) = a + b
fun foo() {
val foo = foo(1 + 2, 3 * 4)
}
@@ -1,6 +0,0 @@
// AFTER-WARNING: Variable 'foo' is never used
fun foo(a: Int, b: Int) = a + b
fun foo() {
val foo = foo(1 + 2, 3 * 4)
}
@@ -219,7 +219,7 @@ object K2IntroduceVariableHandler : KotlinIntroduceVariableHandler() {
}
}
val isInplaceAvailable = editor != null
val isInplaceAvailable = isInplaceAvailable(editor, project)
val allOccurrences = occurrencesToReplace ?: expression.findOccurrences(containers.occurrenceContainer)