[KAPT] KT-64389 Fix stub generation with generic type constraints

This commit is contained in:
strangepleasures
2023-12-19 09:01:06 +01:00
committed by Space Team
parent 4783822fbc
commit b32f408767
6 changed files with 96 additions and 1 deletions
@@ -437,7 +437,7 @@ private class StubGenerator(
printWithNoIndent(param.name, " extends ")
if (param.extendsListTypes.isNotEmpty()) {
param.extendsListTypes.forEachIndexed { i, t ->
if (i > 0) printWithNoIndent(", ")
if (i > 0) printWithNoIndent(" & ")
printType(t)
}
} else {
@@ -571,6 +571,12 @@ public class KotlinKapt4ContextTestGenerated extends AbstractKotlinKapt4ContextT
runTest("plugins/kapt4/../kapt3/kapt3-compiler/testData/converter/multifileClassDefaultPackage.kt");
}
@Test
@TestMetadata("multipleTypeConstraints.kt")
public void testMultipleTypeConstraints() throws Exception {
runTest("plugins/kapt4/../kapt3/kapt3-compiler/testData/converter/multipleTypeConstraints.kt");
}
@Test
@TestMetadata("nestedClasses.kt")
public void testNestedClasses() throws Exception {