Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
IVIanuu committed Feb 26, 2024
1 parent 1a99194 commit a959f1d
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,18 +198,13 @@ class InjectCallTransformer(
injectable: LambdaInjectable
): IrExpression {
val type = injectable.type.toIrType(this).typeOrNull.cast<IrSimpleType>()
val returnType = type.arguments.last().typeOrNull!!

val lambda = IrFactoryImpl.buildFun {
origin = IrDeclarationOrigin.LOCAL_FUNCTION_FOR_LAMBDA
name = Name.special("<anonymous>")
this.returnType = returnType
returnType = type.arguments.last().typeOrNull!!
visibility = DescriptorVisibilities.LOCAL
}.apply {
parent = irBuilder.scope.getLocalDeclarationParent()
annotations = annotations + type.annotations.map {
it.deepCopyWithSymbols()
}

val irBuilder = DeclarationIrBuilder(irCtx, symbol)

Expand Down

0 comments on commit a959f1d

Please sign in to comment.