Kapt+JVM_IR: add regression test for KT-61212
#KT-61212
This commit is contained in:
committed by
Space Team
parent
1af7aba26e
commit
d50d36f16c
+57
@@ -0,0 +1,57 @@
|
|||||||
|
/**
|
||||||
|
* public final enum class E : kotlin/Enum<E> {
|
||||||
|
*
|
||||||
|
* // signature: <init>(Ljava/lang/String;ILI;)V
|
||||||
|
* private constructor(i: I)
|
||||||
|
*
|
||||||
|
* // field: i:LI;
|
||||||
|
* // getter: getI()LI;
|
||||||
|
* public final val i: I
|
||||||
|
* public final get
|
||||||
|
*
|
||||||
|
* E1,
|
||||||
|
*
|
||||||
|
* E2,
|
||||||
|
*
|
||||||
|
* E3,
|
||||||
|
*
|
||||||
|
* // module name: main
|
||||||
|
*
|
||||||
|
* // has Enum.entries
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
@kotlin.Metadata()
|
||||||
|
@kotlin.Suppress(names = {"UNRESOLVED_REFERENCE"})
|
||||||
|
public enum E {
|
||||||
|
/*public static final*/ E1 /* = new E() */,
|
||||||
|
/*public static final*/ E2 /* = new E() */,
|
||||||
|
/*public static final*/ E3 /* = new E() */;
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
private final I i = null;
|
||||||
|
|
||||||
|
E(I i) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
public final I getI() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
public static kotlin.enums.EnumEntries<E> getEntries() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* public abstract interface I : kotlin/Any {
|
||||||
|
*
|
||||||
|
* // module name: main
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
@kotlin.Metadata()
|
||||||
|
public abstract interface I {
|
||||||
|
}
|
||||||
+10
@@ -0,0 +1,10 @@
|
|||||||
|
// CORRECT_ERROR_TYPES
|
||||||
|
|
||||||
|
interface I
|
||||||
|
|
||||||
|
@Suppress("UNRESOLVED_REFERENCE")
|
||||||
|
enum class E(val i: I) {
|
||||||
|
E1(Unresolved1),
|
||||||
|
E2(Unresolved2),
|
||||||
|
E3(Unresolved3),
|
||||||
|
}
|
||||||
+52
@@ -0,0 +1,52 @@
|
|||||||
|
/**
|
||||||
|
* public final enum class E : kotlin/Enum<E> {
|
||||||
|
*
|
||||||
|
* // signature: <init>(Ljava/lang/String;ILI;)V
|
||||||
|
* private constructor(i: I)
|
||||||
|
*
|
||||||
|
* // field: i:LI;
|
||||||
|
* // getter: getI()LI;
|
||||||
|
* public final val i: I
|
||||||
|
* public final get
|
||||||
|
*
|
||||||
|
* E1,
|
||||||
|
*
|
||||||
|
* E2,
|
||||||
|
*
|
||||||
|
* E3,
|
||||||
|
*
|
||||||
|
* // module name: main
|
||||||
|
*
|
||||||
|
* // has Enum.entries
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
@kotlin.Metadata()
|
||||||
|
@kotlin.Suppress(names = {"UNRESOLVED_REFERENCE"})
|
||||||
|
public enum E {
|
||||||
|
/*public static final*/ E1 /* = new E() */,
|
||||||
|
/*public static final*/ E2 /* = new E() */,
|
||||||
|
/*public static final*/ E3 /* = new E() */;
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
private final I i = null;
|
||||||
|
|
||||||
|
E(I i) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
public final I getI() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* public abstract interface I : kotlin/Any {
|
||||||
|
*
|
||||||
|
* // module name: main
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
@kotlin.Metadata()
|
||||||
|
public abstract interface I {
|
||||||
|
}
|
||||||
+6
@@ -193,6 +193,12 @@ public class ClassFileToSourceStubConverterTestGenerated extends AbstractClassFi
|
|||||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/deprecated.kt");
|
runTest("plugins/kapt3/kapt3-compiler/testData/converter/deprecated.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("enumConstructorCallWithErrorType.kt")
|
||||||
|
public void testEnumConstructorCallWithErrorType() throws Exception {
|
||||||
|
runTest("plugins/kapt3/kapt3-compiler/testData/converter/enumConstructorCallWithErrorType.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("enumImports.kt")
|
@TestMetadata("enumImports.kt")
|
||||||
public void testEnumImports() throws Exception {
|
public void testEnumImports() throws Exception {
|
||||||
|
|||||||
+6
@@ -193,6 +193,12 @@ public class IrClassFileToSourceStubConverterTestGenerated extends AbstractIrCla
|
|||||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/deprecated.kt");
|
runTest("plugins/kapt3/kapt3-compiler/testData/converter/deprecated.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("enumConstructorCallWithErrorType.kt")
|
||||||
|
public void testEnumConstructorCallWithErrorType() throws Exception {
|
||||||
|
runTest("plugins/kapt3/kapt3-compiler/testData/converter/enumConstructorCallWithErrorType.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("enumImports.kt")
|
@TestMetadata("enumImports.kt")
|
||||||
public void testEnumImports() throws Exception {
|
public void testEnumImports() throws Exception {
|
||||||
|
|||||||
+6
@@ -193,6 +193,12 @@ public class KotlinKapt4ContextTestGenerated extends AbstractKotlinKapt4ContextT
|
|||||||
runTest("plugins/kapt4/../kapt3/kapt3-compiler/testData/converter/deprecated.kt");
|
runTest("plugins/kapt4/../kapt3/kapt3-compiler/testData/converter/deprecated.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("enumConstructorCallWithErrorType.kt")
|
||||||
|
public void testEnumConstructorCallWithErrorType() throws Exception {
|
||||||
|
runTest("plugins/kapt4/../kapt3/kapt3-compiler/testData/converter/enumConstructorCallWithErrorType.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("enumImports.kt")
|
@TestMetadata("enumImports.kt")
|
||||||
public void testEnumImports() throws Exception {
|
public void testEnumImports() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user