[KAPT] KT-65453 Disable generation of type annotations in Java stubs

A workaround for KT-65608


Merge-request: KT-MR-14236
Merged-by: Pavel Mikhailovskii <Pavel.Mikhailovskii@jetbrains.com>
This commit is contained in:
Pavel Mikhailovskii
2024-02-08 18:05:49 +00:00
committed by Space Team
parent 18c08eb9ff
commit f81b1150b2
7 changed files with 99 additions and 5 deletions
@@ -430,7 +430,7 @@ private class StubGenerator(
private fun Printer.printType(type: PsiType) {
recordErrorTypes(type)
printTypeSignature(type, true)
printTypeSignature(type, false) // TODO: Set to true when KT-65608 is fixed
}
private fun Printer.printTypeSignature(type: PsiType, annotated: Boolean) {
@@ -511,6 +511,12 @@ public class KotlinKapt4ContextTestGenerated extends AbstractKotlinKapt4ContextT
runTest("plugins/kapt4/../kapt3/kapt3-compiler/testData/converter/kt61729.kt");
}
@Test
@TestMetadata("kt65453.kt")
public void testKt65453() throws Exception {
runTest("plugins/kapt4/../kapt3/kapt3-compiler/testData/converter/kt65453.kt");
}
@Test
@TestMetadata("lazyProperty.kt")
public void testLazyProperty() throws Exception {