Files
kotlin/compiler/testData/codegen/bytecodeText/inlineClasses/constructorWithDefaultArguments.kt
Alexander Udalov e9946b21b5 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.
2019-12-02 10:19:55 +01:00

12 lines
480 B
Kotlin
Vendored

// !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