Test no psi stub mismatch for light classes with suspend in overloads
IdeCompiledLightClassTestGenerated is relevant.
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
public final class A {
|
||||||
|
public final void foo(@org.jetbrains.annotations.Nullable P p1, @org.jetbrains.annotations.Nullable P p2) { /* compiled code */ }
|
||||||
|
|
||||||
|
public final void foo(@org.jetbrains.annotations.NotNull kotlin.jvm.functions.Function4<? super RS,? super P,? super P,? super kotlin.coroutines.experimental.Continuation<? super kotlin.Unit>,? extends java.lang.Object> listener) { /* compiled code */ }
|
||||||
|
|
||||||
|
public A() { /* compiled code */ }
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
// A
|
||||||
|
class A {
|
||||||
|
fun foo(p1: P?, p2: P?) {}
|
||||||
|
fun foo(listener: suspend RS.(P?, P?) -> Unit) {}
|
||||||
|
}
|
||||||
|
|
||||||
|
interface P
|
||||||
|
interface RS
|
||||||
@@ -144,6 +144,12 @@ public class CompilerLightClassTestGenerated extends AbstractCompilerLightClassT
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("StubOrderForOverloads.kt")
|
||||||
|
public void testStubOrderForOverloads() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/StubOrderForOverloads.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("VarArgs.kt")
|
@TestMetadata("VarArgs.kt")
|
||||||
public void testVarArgs() throws Exception {
|
public void testVarArgs() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/VarArgs.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/VarArgs.kt");
|
||||||
|
|||||||
+6
@@ -144,6 +144,12 @@ public class IdeCompiledLightClassTestGenerated extends AbstractIdeCompiledLight
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("StubOrderForOverloads.kt")
|
||||||
|
public void testStubOrderForOverloads() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/StubOrderForOverloads.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("VarArgs.kt")
|
@TestMetadata("VarArgs.kt")
|
||||||
public void testVarArgs() throws Exception {
|
public void testVarArgs() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/VarArgs.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/VarArgs.kt");
|
||||||
|
|||||||
@@ -144,6 +144,12 @@ public class IdeLightClassTestGenerated extends AbstractIdeLightClassTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("StubOrderForOverloads.kt")
|
||||||
|
public void testStubOrderForOverloads() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/StubOrderForOverloads.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("VarArgs.kt")
|
@TestMetadata("VarArgs.kt")
|
||||||
public void testVarArgs() throws Exception {
|
public void testVarArgs() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/VarArgs.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/VarArgs.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user