Kapt+JVM_IR: add stub converter test for KT-57388
This commit is contained in:
+44
@@ -0,0 +1,44 @@
|
||||
@kotlin.Metadata()
|
||||
@kotlin.Suppress(names = {"UNRESOLVED_REFERENCE"})
|
||||
public final class B implements NonExisting {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String a$delegate = null;
|
||||
|
||||
public B() {
|
||||
super();
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getA() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"UNRESOLVED_REFERENCE_WRONG_RECEIVER"})
|
||||
@java.lang.Deprecated()
|
||||
public static void getA$annotations() {
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public class C {
|
||||
|
||||
public C() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class UnresolvedDelegateExpressionKt {
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String flaf(@org.jetbrains.annotations.NotNull()
|
||||
C $this$flaf) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// CORRECT_ERROR_TYPES
|
||||
// NO_VALIDATION
|
||||
|
||||
open class C
|
||||
|
||||
@Suppress("UNRESOLVED_REFERENCE")
|
||||
class B : NonExisting {
|
||||
@Suppress("UNRESOLVED_REFERENCE_WRONG_RECEIVER")
|
||||
val a: String by flaf()
|
||||
}
|
||||
|
||||
fun C.flaf() = "OK"
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
@kotlin.Metadata()
|
||||
@kotlin.Suppress(names = {"UNRESOLVED_REFERENCE"})
|
||||
public final class B implements NonExisting {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.Object a$delegate = null;
|
||||
|
||||
public B() {
|
||||
super();
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getA() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@kotlin.Suppress(names = {"UNRESOLVED_REFERENCE_WRONG_RECEIVER"})
|
||||
@java.lang.Deprecated()
|
||||
public static void getA$annotations() {
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public class C {
|
||||
|
||||
public C() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class UnresolvedDelegateExpressionKt {
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String flaf(@org.jetbrains.annotations.NotNull()
|
||||
C $this$flaf) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+6
@@ -631,6 +631,12 @@ public class ClassFileToSourceStubConverterTestGenerated extends AbstractClassFi
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/topLevel.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("unresolvedDelegateExpression.kt")
|
||||
public void testUnresolvedDelegateExpression() throws Exception {
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/unresolvedDelegateExpression.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("unsafePropertyInitializers.kt")
|
||||
public void testUnsafePropertyInitializers() throws Exception {
|
||||
|
||||
+6
@@ -631,6 +631,12 @@ public class IrClassFileToSourceStubConverterTestGenerated extends AbstractIrCla
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/topLevel.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("unresolvedDelegateExpression.kt")
|
||||
public void testUnresolvedDelegateExpression() throws Exception {
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/unresolvedDelegateExpression.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("unsafePropertyInitializers.kt")
|
||||
public void testUnsafePropertyInitializers() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user