JVM_IR: generate default constructor
Quoted from https://kotlinlang.org/docs/reference/classes.html "On the JVM, if all of the parameters of the primary constructor have default values, the compiler will generate an additional parameterless constructor which will use the default values. This makes it easier to use Kotlin with libraries such as Jackson or JPA that create class instances through parameterless constructors."
This commit is contained in:
committed by
max-kammerer
parent
440f327e74
commit
74e8c7c1c5
-1
@@ -1,4 +1,3 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
package test
|
||||
|
||||
class A(val a: Int = 1, val b: String = "default")
|
||||
|
||||
Reference in New Issue
Block a user