Remove wrong condition part: there could be irrelevant overrides from Kotlin

This commit is contained in:
Denis Zharkov
2015-10-28 11:26:55 +03:00
parent 291f0e57d1
commit 5755af6b27
10 changed files with 363 additions and 2 deletions
@@ -0,0 +1,7 @@
public class J {
public static class A extends AImpl implements CharSequence {
public CharSequence subSequence(int start, int end) {
return null;
}
}
}
@@ -0,0 +1,18 @@
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"
}