KAPT+IR: Support secondary constructors
This commit is contained in:
@@ -156,8 +156,10 @@ class BodyGenerator(
|
|||||||
|
|
||||||
generateDelegatingConstructorCall(irBlockBody, ktConstructor)
|
generateDelegatingConstructorCall(irBlockBody, ktConstructor)
|
||||||
|
|
||||||
ktConstructor.bodyExpression?.let { ktBody ->
|
if (context.configuration.generateBodies) {
|
||||||
createStatementGenerator().generateStatements(ktBody.statements, irBlockBody)
|
ktConstructor.bodyExpression?.let { ktBody ->
|
||||||
|
createStatementGenerator().generateStatements(ktBody.statements, irBlockBody)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return irBlockBody
|
return irBlockBody
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
|
|
||||||
interface Named {
|
interface Named {
|
||||||
val name: String?
|
val name: String?
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
// CORRECT_ERROR_TYPES
|
// CORRECT_ERROR_TYPES
|
||||||
|
|
||||||
package secondary
|
package secondary
|
||||||
|
|||||||
Reference in New Issue
Block a user