mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 00:21:28 +00:00
12 lines
322 B
Kotlin
Vendored
12 lines
322 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS
|
|
|
|
// 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()
|
|
}
|