Add another binding for wrapped parameter descriptors.
This commit is contained in:
committed by
Mikhail Glukhikh
parent
d3b21aed8a
commit
d407663734
+6
-2
@@ -303,15 +303,19 @@ class Fir2IrDeclarationStorage(
|
|||||||
|
|
||||||
private fun <T : IrFunction> T.declareDefaultSetterParameter(type: IrType): T {
|
private fun <T : IrFunction> T.declareDefaultSetterParameter(type: IrType): T {
|
||||||
val parent = this
|
val parent = this
|
||||||
|
val descriptor = WrappedValueParameterDescriptor()
|
||||||
valueParameters += irSymbolTable.declareValueParameter(
|
valueParameters += irSymbolTable.declareValueParameter(
|
||||||
startOffset, endOffset, origin, WrappedValueParameterDescriptor(), type
|
startOffset, endOffset, origin, descriptor, type
|
||||||
) { symbol ->
|
) { symbol ->
|
||||||
IrValueParameterImpl(
|
IrValueParameterImpl(
|
||||||
startOffset, endOffset, IrDeclarationOrigin.DEFINED, symbol,
|
startOffset, endOffset, IrDeclarationOrigin.DEFINED, symbol,
|
||||||
Name.special("<set-?>"), 0, type,
|
Name.special("<set-?>"), 0, type,
|
||||||
varargElementType = null,
|
varargElementType = null,
|
||||||
isCrossinline = false, isNoinline = false
|
isCrossinline = false, isNoinline = false
|
||||||
).apply { this.parent = parent }
|
).apply {
|
||||||
|
this.parent = parent
|
||||||
|
descriptor.bind(this)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND_FIR: JVM_IR
|
|
||||||
//KT-2206
|
//KT-2206
|
||||||
|
|
||||||
interface A {
|
interface A {
|
||||||
|
|||||||
Reference in New Issue
Block a user