JVM IR: Generate synthetic final implementation methods in SAM wrappers

This commit is contained in:
Steven Schäfer
2020-10-28 18:00:44 +01:00
committed by Alexander Udalov
parent a475fa2a21
commit 68e2d0d245
5 changed files with 38 additions and 1 deletions
@@ -209,7 +209,8 @@ abstract class SingleAbstractMethodLowering(val context: CommonBackendContext) :
name = superMethod.name
returnType = superMethod.returnType
visibility = superMethod.visibility
origin = subclass.origin
modality = Modality.FINAL
origin = IrDeclarationOrigin.SYNTHETIC_GENERATED_SAM_IMPLEMENTATION
isSuspend = superMethod.isSuspend
setSourceRange(createFor)
}.apply {