mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 00:21:26 +00:00
25 lines
576 B
Kotlin
Vendored
25 lines
576 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
open class A {
|
|
fun get(index: Int): Char = '*'
|
|
}
|
|
|
|
abstract class <!WRONG_MULTIPLE_INHERITANCE!>B<!> : A(), CharSequence
|
|
|
|
interface I {
|
|
fun nextChar(): Char
|
|
}
|
|
|
|
abstract class <!WRONG_MULTIPLE_INHERITANCE!>C<!> : CharIterator(), I {
|
|
override fun nextChar(): Char = '*'
|
|
}
|
|
|
|
class <!WRONG_MULTIPLE_INHERITANCE!>CC(val s: CharSequence)<!> : CharSequence by s, MyCharSequence {}
|
|
|
|
interface MyCharSequence {
|
|
val length: Int
|
|
|
|
operator fun get(index: Int): Char
|
|
|
|
fun subSequence(startIndex: Int, endIndex: Int): CharSequence
|
|
} |