Collect overrides of special builtin members in super types

#KT-9695 Fixed
This commit is contained in:
Denis Zharkov
2015-10-26 11:14:09 +03:00
parent 060178e53f
commit 94803ce1c4
13 changed files with 688 additions and 48 deletions
@@ -0,0 +1,28 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
// FILE: AImpl.kt
abstract class AImpl {
fun charAt(index: Int): Char {
return '1'
}
fun length(): Int {
return 1
}
}
// FILE: A.java
public class A extends AImpl implements CharSequence {
public CharSequence subSequence(int start, int end) {
return null;
}
}
// FILE: X.kt
class X : A()
fun main() {
val x = X()
x[0]
x.length
}