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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
class MyClass() {
|
||||
fun test(s: String = "") {}
|
||||
}
|
||||
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
class MyClass() {
|
||||
companion object {
|
||||
fun test(s: String, x:Int = 10) {}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
fun test(s: String = "") {}
|
||||
|
||||
// TESTED_OBJECT_KIND: function
|
||||
|
||||
Reference in New Issue
Block a user