FE: drop a redundant diagnostic test (exact duplicate of suspendJavaOverrides.kt)
This commit is contained in:
committed by
Space Team
parent
f47705f123
commit
79e041a310
-6
@@ -43134,12 +43134,6 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
|||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn.kt");
|
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("suspendCovarianJavaOverride.kt")
|
|
||||||
public void testSuspendCovarianJavaOverride() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCovarianJavaOverride.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("suspendDestructuring.kt")
|
@TestMetadata("suspendDestructuring.kt")
|
||||||
public void testSuspendDestructuring() throws Exception {
|
public void testSuspendDestructuring() throws Exception {
|
||||||
|
|||||||
-6
@@ -43134,12 +43134,6 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
|||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn.kt");
|
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("suspendCovarianJavaOverride.kt")
|
|
||||||
public void testSuspendCovarianJavaOverride() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCovarianJavaOverride.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("suspendDestructuring.kt")
|
@TestMetadata("suspendDestructuring.kt")
|
||||||
public void testSuspendDestructuring() throws Exception {
|
public void testSuspendDestructuring() throws Exception {
|
||||||
|
|||||||
-6
@@ -40860,12 +40860,6 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
|||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn.kt");
|
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("suspendCovarianJavaOverride.kt")
|
|
||||||
public void testSuspendCovarianJavaOverride() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCovarianJavaOverride.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("suspendDestructuring.kt")
|
@TestMetadata("suspendDestructuring.kt")
|
||||||
public void testSuspendDestructuring() throws Exception {
|
public void testSuspendDestructuring() throws Exception {
|
||||||
|
|||||||
-6
@@ -40980,12 +40980,6 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
|||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn.kt");
|
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("suspendCovarianJavaOverride.kt")
|
|
||||||
public void testSuspendCovarianJavaOverride() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCovarianJavaOverride.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("suspendDestructuring.kt")
|
@TestMetadata("suspendDestructuring.kt")
|
||||||
public void testSuspendDestructuring() throws Exception {
|
public void testSuspendDestructuring() throws Exception {
|
||||||
|
|||||||
-51
@@ -1,51 +0,0 @@
|
|||||||
// FIR_IDENTICAL
|
|
||||||
// FILE: I.kt
|
|
||||||
|
|
||||||
interface I {
|
|
||||||
suspend fun foo(x: Int): String
|
|
||||||
}
|
|
||||||
|
|
||||||
// FILE: JavaClass.java
|
|
||||||
import kotlin.coroutines.Continuation;
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
|
||||||
|
|
||||||
public class JavaClass implements I {
|
|
||||||
@Override
|
|
||||||
public Object foo(int x, @NotNull Continuation<? super String> continuation) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// FILE: main.kt
|
|
||||||
|
|
||||||
import kotlin.coroutines.Continuation
|
|
||||||
class K1 : JavaClass()
|
|
||||||
|
|
||||||
class K2 : JavaClass() {
|
|
||||||
override suspend fun foo(x: Int): String = ""
|
|
||||||
}
|
|
||||||
|
|
||||||
class K3 : JavaClass() {
|
|
||||||
<!NOTHING_TO_OVERRIDE!>override<!> fun foo(x: Int, y: Continuation<String>): Any? = null
|
|
||||||
}
|
|
||||||
|
|
||||||
fun builder(block: suspend () -> Unit) {}
|
|
||||||
|
|
||||||
fun main(x: Continuation<String>) {
|
|
||||||
JavaClass().<!ILLEGAL_SUSPEND_FUNCTION_CALL!>foo<!>(5, <!TOO_MANY_ARGUMENTS!>x<!>)
|
|
||||||
K1().<!ILLEGAL_SUSPEND_FUNCTION_CALL!>foo<!>(6, <!TOO_MANY_ARGUMENTS!>x<!>)
|
|
||||||
K2().<!ILLEGAL_SUSPEND_FUNCTION_CALL!>foo<!>(7, <!TOO_MANY_ARGUMENTS!>x<!>)
|
|
||||||
K3().foo(8, x)
|
|
||||||
|
|
||||||
builder {
|
|
||||||
JavaClass().foo(1)
|
|
||||||
K1().foo(2)
|
|
||||||
K2().foo(3)
|
|
||||||
K3().foo(4)
|
|
||||||
|
|
||||||
JavaClass().foo(5, <!TOO_MANY_ARGUMENTS!>x<!>)
|
|
||||||
K1().foo(6, <!TOO_MANY_ARGUMENTS!>x<!>)
|
|
||||||
K2().foo(7, <!TOO_MANY_ARGUMENTS!>x<!>)
|
|
||||||
K3().foo(8, x)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-44
@@ -1,44 +0,0 @@
|
|||||||
package
|
|
||||||
|
|
||||||
public fun builder(/*0*/ block: suspend () -> kotlin.Unit): kotlin.Unit
|
|
||||||
public fun main(/*0*/ x: kotlin.coroutines.Continuation<kotlin.String>): kotlin.Unit
|
|
||||||
|
|
||||||
public interface I {
|
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
|
||||||
public abstract suspend fun foo(/*0*/ x: kotlin.Int): kotlin.String
|
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
|
||||||
}
|
|
||||||
|
|
||||||
public open class JavaClass : I {
|
|
||||||
public constructor JavaClass()
|
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
|
||||||
@java.lang.Override public open override /*1*/ suspend fun foo(/*0*/ x: kotlin.Int): kotlin.String
|
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
|
||||||
}
|
|
||||||
|
|
||||||
public final class K1 : JavaClass {
|
|
||||||
public constructor K1()
|
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
|
||||||
@java.lang.Override public open override /*1*/ suspend /*fake_override*/ fun foo(/*0*/ x: kotlin.Int): kotlin.String
|
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
|
||||||
}
|
|
||||||
|
|
||||||
public final class K2 : JavaClass {
|
|
||||||
public constructor K2()
|
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
|
||||||
public open override /*1*/ suspend fun foo(/*0*/ x: kotlin.Int): kotlin.String
|
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
|
||||||
}
|
|
||||||
|
|
||||||
public final class K3 : JavaClass {
|
|
||||||
public constructor K3()
|
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
|
||||||
@java.lang.Override public open override /*1*/ suspend /*fake_override*/ fun foo(/*0*/ x: kotlin.Int): kotlin.String
|
|
||||||
public open fun foo(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.coroutines.Continuation<kotlin.String>): kotlin.Any?
|
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
|
||||||
}
|
|
||||||
Generated
-6
@@ -43134,12 +43134,6 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn.kt");
|
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCoroutineOrReturn.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("suspendCovarianJavaOverride.kt")
|
|
||||||
public void testSuspendCovarianJavaOverride() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendCovarianJavaOverride.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("suspendDestructuring.kt")
|
@TestMetadata("suspendDestructuring.kt")
|
||||||
public void testSuspendDestructuring() throws Exception {
|
public void testSuspendDestructuring() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user