mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 00:21:35 +00:00
19 lines
283 B
Kotlin
Vendored
19 lines
283 B
Kotlin
Vendored
abstract class AImpl {
|
|
fun charAt(index: Int): Char {
|
|
return 'A'
|
|
}
|
|
|
|
fun length(): Int {
|
|
return 56
|
|
}
|
|
}
|
|
|
|
class X : J.A()
|
|
|
|
fun box(): String {
|
|
val x = X()
|
|
if (x.length != 56) return "fail 1"
|
|
if (x[0] != 'A') return "fail 2"
|
|
return "OK"
|
|
}
|