IR: Fix offsets for value parameters for bridges
Previously, offsets from super class parameter have been used and they might belong to a different file and those offsets are irrelevant to the current file
This commit is contained in:
+3
-1
@@ -558,7 +558,9 @@ internal class BridgeLowering(val context: JvmBackendContext) : FileLoweringPass
|
|||||||
target, IrDeclarationOrigin.BRIDGE,
|
target, IrDeclarationOrigin.BRIDGE,
|
||||||
type = (substitutedType?.eraseToScope(visibleTypeParameters) ?: type.eraseTypeParameters()),
|
type = (substitutedType?.eraseToScope(visibleTypeParameters) ?: type.eraseTypeParameters()),
|
||||||
// Currently there are no special bridge methods with vararg parameters, so we don't track substituted vararg element types.
|
// Currently there are no special bridge methods with vararg parameters, so we don't track substituted vararg element types.
|
||||||
varargElementType = varargElementType?.eraseToScope(visibleTypeParameters)
|
varargElementType = varargElementType?.eraseToScope(visibleTypeParameters),
|
||||||
|
startOffset = target.startOffset,
|
||||||
|
endOffset = target.endOffset,
|
||||||
)
|
)
|
||||||
|
|
||||||
private fun IrBuilderWithScope.delegatingCall(
|
private fun IrBuilderWithScope.delegatingCall(
|
||||||
|
|||||||
Reference in New Issue
Block a user