JVM IR: Fix generation of parameterless default constructor
The JVM backend does not generate parameterless default constructors for private constructors and constructors of local, inner, or inline classes.
This commit is contained in:
committed by
Alexander Udalov
parent
5321a6af33
commit
8e07482862
@@ -0,0 +1,13 @@
|
||||
inline class A(val x: Int = 0)
|
||||
|
||||
// 0 <init>\(\)V
|
||||
// 1 private synthetic <init>\(I\)V
|
||||
// 1 public final static synthetic box-impl\(I\)LA;
|
||||
|
||||
// JVM_TEMPLATES
|
||||
// 1 public static constructor-impl\(I\)I
|
||||
// 1 public static synthetic constructor-impl\$default\(IILkotlin/jvm/internal/DefaultConstructorMarker;\)I
|
||||
|
||||
// JVM_IR_TEMPLATES
|
||||
// 1 public final static constructor-impl\(I\)I
|
||||
// 1 public static synthetic constructor-impl\$default\(IILjava/lang/Object;\)I
|
||||
Reference in New Issue
Block a user