mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 08:31:31 +00:00
11 lines
279 B
Kotlin
Vendored
11 lines
279 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
|
|
class A(value: Int = 1)
|
|
|
|
fun box(): String {
|
|
val constructors = A::class.java.getConstructors().filter { !it.isSynthetic() }
|
|
return if (constructors.size == 2) "OK" else constructors.size.toString()
|
|
}
|