Don't generate bridge flag for defaults in JVM IR backend
This commit is contained in:
+1
-1
@@ -69,7 +69,7 @@ open class FunctionCodegen(
|
||||
private fun calculateMethodFlags(isStatic: Boolean): Int {
|
||||
if (irFunction.origin == IrDeclarationOrigin.FUNCTION_FOR_DEFAULT_PARAMETER) {
|
||||
return Opcodes.ACC_PUBLIC or Opcodes.ACC_SYNTHETIC.let {
|
||||
if (irFunction is IrConstructor) it else it or Opcodes.ACC_BRIDGE or Opcodes.ACC_STATIC
|
||||
if (irFunction is IrConstructor) it else it or Opcodes.ACC_STATIC
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user