[JVM IR] Copy inline class constructor annotations

This commit is contained in:
Kristoffer Andersen
2020-07-10 15:43:49 +02:00
committed by Dmitry Petrov
parent 678b76cab1
commit 8d79a6ae03
2 changed files with 1 additions and 1 deletions
@@ -474,6 +474,7 @@ private class JvmInlineClassLowering(private val context: JvmBackendContext) : F
// Don't create a default argument stub for the primary constructor
irConstructor.valueParameters.forEach { it.defaultValue = null }
copyParameterDeclarationsFrom(irConstructor)
annotations += irConstructor.annotations
body = context.createIrBuilder(this.symbol).irBlockBody(this) {
+irDelegatingConstructorCall(context.irBuiltIns.anyClass.owner.constructors.single())
+irSetField(