Corresponding fix to js de-descriptiozation
(cherry picked from commit f542026312055e0ed49846f4dc76500ad1f44a32)
This commit is contained in:
committed by
Vasily Levchenko
parent
bc3b4f3954
commit
26bec6f739
+1
-1
@@ -494,7 +494,7 @@ private val Context.getLoweredInlineClassConstructor: (IrConstructor) -> IrSimpl
|
|||||||
require(irConstructor.constructedClass.isInlined())
|
require(irConstructor.constructedClass.isInlined())
|
||||||
require(!irConstructor.isPrimary)
|
require(!irConstructor.isPrimary)
|
||||||
|
|
||||||
val descriptor = WrappedSimpleFunctionDescriptor(irConstructor.descriptor.annotations, irConstructor.descriptor.source)
|
val descriptor = WrappedSimpleFunctionDescriptor()
|
||||||
IrFunctionImpl(
|
IrFunctionImpl(
|
||||||
irConstructor.startOffset, irConstructor.endOffset,
|
irConstructor.startOffset, irConstructor.endOffset,
|
||||||
IrDeclarationOrigin.DEFINED,
|
IrDeclarationOrigin.DEFINED,
|
||||||
|
|||||||
+1
-4
@@ -109,10 +109,7 @@ internal class EnumConstructorsLowering(val context: Context) : ClassLoweringPas
|
|||||||
private fun lowerEnumConstructor(constructor: IrConstructor): IrConstructor {
|
private fun lowerEnumConstructor(constructor: IrConstructor): IrConstructor {
|
||||||
val startOffset = constructor.startOffset
|
val startOffset = constructor.startOffset
|
||||||
val endOffset = constructor.endOffset
|
val endOffset = constructor.endOffset
|
||||||
val loweredConstructor = WrappedClassConstructorDescriptor(
|
val loweredConstructor = WrappedClassConstructorDescriptor().let {
|
||||||
constructor.descriptor.annotations,
|
|
||||||
constructor.descriptor.source
|
|
||||||
).let {
|
|
||||||
IrConstructorImpl(
|
IrConstructorImpl(
|
||||||
startOffset, endOffset,
|
startOffset, endOffset,
|
||||||
constructor.origin,
|
constructor.origin,
|
||||||
|
|||||||
Reference in New Issue
Block a user