KTIJ-39388 [kotlin] Clean up SuspiciousImplicitCoroutineScopeReceiverAccess Java test data

Test-data only; no change to inspection behavior.

See comments in https://jetbrains.team/p/ij/reviews/210957/timeline

M-Session-Id: M-332dcc36-6a77-4542-b67a-8a34c99a3792


(cherry picked from commit 00bceb41f57bd94ab3cf9a9ca7401828bd69ef4f)

IJ-CR-218907

GitOrigin-RevId: 725bc198f6744e509d7f98b61637a24717e6bb56
This commit is contained in:
Roman Golyshev
2026-08-18 10:57:22 +00:00
committed by intellij-monorepo-bot
parent 32b66c7d87
commit dc44eb9fa6
6 changed files with 15 additions and 15 deletions
@@ -5,11 +5,11 @@ package test
import kotlinx.coroutines.CoroutineScope
fun interface CustomSuspendLambda {
fun interface CustomSuspendAction {
suspend fun customInvoke(): Unit
}
private suspend fun suspendWrapper(action: CustomSuspendLambda) {
private suspend fun suspendWrapper(action: CustomSuspendAction) {
action.customInvoke()
}
@@ -5,11 +5,11 @@ package test
import kotlinx.coroutines.CoroutineScope
fun interface CustomSuspendLambda {
fun interface CustomSuspendAction {
suspend fun customInvoke(): Unit
}
private suspend fun suspendWrapper(action: CustomSuspendLambda) {
private suspend fun suspendWrapper(action: CustomSuspendAction) {
action.customInvoke()
}
@@ -1,13 +1,13 @@
package test
package test;
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.CoroutineScope;
interface CustomSuspendLambda {
interface CustomAction {
void customInvoke();
}
class Main {
static void suspendWrapper(CustomSuspendLambda action) {
static void javaStaticWrapper(CustomAction action) {
action.customInvoke();
}
}
@@ -8,7 +8,7 @@ import kotlinx.coroutines.CoroutineScope
fun CoroutineScope.doStuff() {}
suspend fun CoroutineScope.test() {
Main.suspendWrapper {
Main.javaStaticWrapper {
<caret>doStuff()
}
}
@@ -5,18 +5,18 @@ package test
import kotlinx.coroutines.CoroutineScope
fun interface CustomSuspendLambda {
fun interface CustomSuspendAction {
suspend fun customInvoke(): Unit
}
private suspend fun suspendWrapper(action: CustomSuspendLambda) {
private suspend fun suspendWrapper(action: CustomSuspendAction) {
action.customInvoke()
}
fun CoroutineScope.doStuff() {}
suspend fun CoroutineScope.test() {
suspendWrapper(CustomSuspendLambda {
suspendWrapper(CustomSuspendAction {
<caret>doStuff()
})
}
@@ -5,18 +5,18 @@ package test
import kotlinx.coroutines.CoroutineScope
fun interface CustomSuspendLambda {
fun interface CustomSuspendAction {
suspend fun customInvoke(): Unit
}
private suspend fun suspendWrapper(action: CustomSuspendLambda) {
private suspend fun suspendWrapper(action: CustomSuspendAction) {
action.customInvoke()
}
fun CoroutineScope.doStuff() {}
suspend fun CoroutineScope.test() {
suspendWrapper(CustomSuspendLambda {
suspendWrapper(CustomSuspendAction {
this@test.doStuff()
})
}