mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
committed by
intellij-monorepo-bot
parent
32b66c7d87
commit
dc44eb9fa6
+2
-2
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
+4
-4
@@ -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();
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -8,7 +8,7 @@ import kotlinx.coroutines.CoroutineScope
|
||||
fun CoroutineScope.doStuff() {}
|
||||
|
||||
suspend fun CoroutineScope.test() {
|
||||
Main.suspendWrapper {
|
||||
Main.javaStaticWrapper {
|
||||
<caret>doStuff()
|
||||
}
|
||||
}
|
||||
+3
-3
@@ -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()
|
||||
})
|
||||
}
|
||||
+3
-3
@@ -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()
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user