@@ -552,7 +552,7 @@ open class KotlinFileExtractor(
552
552
logger.warnElement(" Expected annotation property to define a getter" , prop)
553
553
} else {
554
554
val getterId = useFunction<DbMethod >(getter)
555
- val exprId = extractAnnotationValueExpression(v, id, i, " {${ getterId} }" , getter.returnType, extractEnumTypeAccesses)
555
+ val exprId = extractAnnotationValueExpression(v, id, i, " {$getterId }" , getter.returnType, extractEnumTypeAccesses)
556
556
if (exprId != null ) {
557
557
tw.writeAnnotValue(id, getterId, exprId)
558
558
}
@@ -587,7 +587,7 @@ open class KotlinFileExtractor(
587
587
extractAnnotation(v, parent, idx, extractEnumTypeAccesses, contextLabel)
588
588
}
589
589
is IrVararg -> {
590
- tw.getLabelFor<DbArrayinit >(" @\" annotationarray;{${ parent} };$contextLabel \" " ).also { arrayId ->
590
+ tw.getLabelFor<DbArrayinit >(" @\" annotationarray;{$parent };$contextLabel \" " ).also { arrayId ->
591
591
// Use the context type (i.e., the type the annotation expects, not the actual type of the array)
592
592
// because the Java extractor fills in array types using the same technique. These should only
593
593
// differ for generic annotations.
@@ -1193,7 +1193,7 @@ open class KotlinFileExtractor(
1193
1193
// n + o'th parameter, where `o` is the parameter offset caused by adding any dispatch receiver to the parameter list.
1194
1194
// Note we don't need to add the extension receiver here because `useValueParameter` always assumes an extension receiver
1195
1195
// will be prepended if one exists.
1196
- val realFunctionId = useFunction<DbCallable >(f)
1196
+ val realFunctionId = useFunction<DbCallable >(f, parentId, null )
1197
1197
DeclarationStackAdjuster (f, OverriddenFunctionAttributes (id, id, locId, nonSyntheticParams, typeParameters = listOf (), isStatic = true )).use {
1198
1198
val realParamsVarId = getValueParameterLabel(id, parameterTypes.size - 2 )
1199
1199
val intType = pluginContext.irBuiltIns.intType
0 commit comments