mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
The JVM backend does not generate parameterless default constructors for private constructors and constructors of local, inner, or inline classes.
17 lines
346 B
Kotlin
Vendored
17 lines
346 B
Kotlin
Vendored
class A(val s: String) {
|
|
fun f(): Int {
|
|
class B(val x: Int = 0) {
|
|
fun f(): Int = x
|
|
}
|
|
return B().f()
|
|
}
|
|
}
|
|
|
|
// @A.class:
|
|
// 1 public <init>\(Ljava/lang/String;\)V
|
|
|
|
// @A$f$B.class:
|
|
// 0 <init>\(\)V
|
|
// 1 public <init>\(I\)V
|
|
// 1 public synthetic <init>\(IILkotlin/jvm/internal/DefaultConstructorMarker;\)V
|