Extract override modifier for lambda and reflection-like constructs

This commit is contained in:
Tamas Vajk
2022-04-07 09:58:40 +02:00
committed by Ian Lynagh
parent 505ccbbcf6
commit fc66b73e3b
5 changed files with 118 additions and 2 deletions

View File

@@ -2670,6 +2670,8 @@ open class KotlinFileExtractor(
val isBigArity = types.size > BuiltInFunctionArity.BIG_ARITY
if (isBigArity) {
implementFunctionNInvoke(e.function, ids, locId, parameters)
} else {
addModifiers(ids.function, "override")
}
val exprParent = parent.expr(e, callable)
@@ -3394,6 +3396,7 @@ open class KotlinFileExtractor(
tw.writeHasLocation(methodId, locId)
addModifiers(methodId, "public")
addModifiers(methodId, "override")
// Block
val blockId = tw.getFreshIdLabel<DbBlock>()