Don't generate bridge flag for defaults in JVM IR backend

This commit is contained in:
Mikhael Bogdanov
2019-04-17 14:23:36 +02:00
parent 115b1c6b6e
commit b70ff30dc3
4 changed files with 1 additions and 4 deletions
@@ -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
}
}