Test no psi stub mismatch for light classes with suspend in overloads

IdeCompiledLightClassTestGenerated is relevant.
This commit is contained in:
Nikolay Krasko
2017-09-11 15:17:40 +03:00
parent 74043089ab
commit 94e3a51a45
5 changed files with 33 additions and 0 deletions
@@ -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);
}
@TestMetadata("StubOrderForOverloads.kt")
public void testStubOrderForOverloads() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/StubOrderForOverloads.kt");
doTest(fileName);
}
@TestMetadata("VarArgs.kt")
public void testVarArgs() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/VarArgs.kt");
@@ -144,6 +144,12 @@ public class IdeCompiledLightClassTestGenerated extends AbstractIdeCompiledLight
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")
public void testVarArgs() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/VarArgs.kt");
@@ -144,6 +144,12 @@ public class IdeLightClassTestGenerated extends AbstractIdeLightClassTest {
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")
public void testVarArgs() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/asJava/lightClasses/VarArgs.kt");