mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
7 lines
214 B
Kotlin
7 lines
214 B
Kotlin
class A(value: Int = 1)
|
|
|
|
fun box(): String {
|
|
val constructors = javaClass<A>().getConstructors().filter { !it.isSynthetic() }
|
|
return if (constructors.size() == 2) "OK" else constructors.size().toString()
|
|
}
|