[KAPT] KT-64389 Fix stub generation with generic type constraints
This commit is contained in:
committed by
Space Team
parent
4783822fbc
commit
b32f408767
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user