JVM IR: do not hide constructor with inline class types and defaults
This corresponds to the ABI generated by the old backend. Moreover, when compiling the module 'ir.tree' with JVM IR (could not reproduce on a small sample), this led to a codegen crash when trying to reassign parameter value to the default stub, which is an error expression and can't be generated by ExpressionCodegen.
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
|
||||
inline class A(val s: String)
|
||||
|
||||
class B(x: Long, a: A = A("OK"))
|
||||
|
||||
// @B.class:
|
||||
// 1 private <init>\(JLjava/lang/String;\)V
|
||||
// 1 public synthetic <init>\(JLjava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;\)V
|
||||
// 1 public synthetic <init>\(JLjava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;\)V
|
||||
// 0 <init>\(JLjava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;Lkotlin/jvm/internal/DefaultConstructorMarker;\)V
|
||||
Reference in New Issue
Block a user