mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[kotlin] Align k2 test data with k1
#KTIJ-22991 Fixed GitOrigin-RevId: 119306382462b3613d4fa773ccccfa33b8f44936
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ae53390ee5
commit
dc0cbaaf38
-6
@@ -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
|
||||
}
|
||||
-6
@@ -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)
|
||||
}
|
||||
-6
@@ -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)
|
||||
}
|
||||
-6
@@ -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
-1
@@ -219,7 +219,7 @@ object K2IntroduceVariableHandler : KotlinIntroduceVariableHandler() {
|
||||
}
|
||||
}
|
||||
|
||||
val isInplaceAvailable = editor != null
|
||||
val isInplaceAvailable = isInplaceAvailable(editor, project)
|
||||
|
||||
val allOccurrences = occurrencesToReplace ?: expression.findOccurrences(containers.occurrenceContainer)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user