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,15 @@
public class J {
abstract static public class AImpl {
public char charAt(int index) {
return 'A';
}
public final int length() { return 56; }
}
public static class A extends AImpl implements CharSequence {
public CharSequence subSequence(int start, int end) {
return null;
}
}
}
@@ -0,0 +1,9 @@
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"
}