Remove erroneous suspend delegate tests (not supported in 1.3)
This commit is contained in:
@@ -1,13 +0,0 @@
|
|||||||
// PROBLEM: none
|
|
||||||
// WITH_RUNTIME
|
|
||||||
|
|
||||||
import kotlin.reflect.KProperty
|
|
||||||
|
|
||||||
<caret>suspend fun bar(): String {
|
|
||||||
val x: String by Delegate()
|
|
||||||
return x
|
|
||||||
}
|
|
||||||
|
|
||||||
class Delegate {
|
|
||||||
suspend operator fun getValue(thisRef: Any?, property: KProperty<*>): String = ""
|
|
||||||
}
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
// PROBLEM: none
|
|
||||||
// WITH_RUNTIME
|
|
||||||
|
|
||||||
import kotlin.reflect.KProperty
|
|
||||||
|
|
||||||
<caret>suspend fun bar(): String {
|
|
||||||
var x: String by Delegate()
|
|
||||||
x = "Hello"
|
|
||||||
return x
|
|
||||||
}
|
|
||||||
|
|
||||||
class Delegate {
|
|
||||||
operator fun getValue(thisRef: Any?, property: KProperty<*>): String = ""
|
|
||||||
|
|
||||||
suspend operator fun setValue(thisRef: Any?, property: KProperty<*>, value: String) {}
|
|
||||||
}
|
|
||||||
-10
@@ -4401,20 +4401,10 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
|
|||||||
runTest("idea/testData/inspectionsLocal/redundantSuspend/coroutineContext.kt");
|
runTest("idea/testData/inspectionsLocal/redundantSuspend/coroutineContext.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("getterDelegate.kt")
|
|
||||||
public void testGetterDelegate() throws Exception {
|
|
||||||
runTest("idea/testData/inspectionsLocal/redundantSuspend/getterDelegate.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("override.kt")
|
@TestMetadata("override.kt")
|
||||||
public void testOverride() throws Exception {
|
public void testOverride() throws Exception {
|
||||||
runTest("idea/testData/inspectionsLocal/redundantSuspend/override.kt");
|
runTest("idea/testData/inspectionsLocal/redundantSuspend/override.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("setterDelegate.kt")
|
|
||||||
public void testSetterDelegate() throws Exception {
|
|
||||||
runTest("idea/testData/inspectionsLocal/redundantSuspend/setterDelegate.kt");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("idea/testData/inspectionsLocal/redundantUnitExpression")
|
@TestMetadata("idea/testData/inspectionsLocal/redundantUnitExpression")
|
||||||
|
|||||||
Reference in New Issue
Block a user