mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 00:21:28 +00:00
9 lines
123 B
Kotlin
9 lines
123 B
Kotlin
class A(val a: Int = 0)
|
|
|
|
fun box(): String {
|
|
if (A().a == 0 && A(1).a == 1) {
|
|
return "OK"
|
|
}
|
|
return "fail"
|
|
}
|