[FIR] Fix overloading of renamed jvm methods

#KT-48102 Fixed
This commit is contained in:
Andrey Zinovyev
2021-08-06 14:11:40 +03:00
committed by TeamCityServer
parent cd99c35649
commit 1b81018b69
14 changed files with 86 additions and 93 deletions
@@ -0,0 +1,13 @@
// KT-48102
// FIR_IDENTICAL
// FILE: MyCharSequence.java
public class MyCharSequence implements CharSequence {
public char charAt(int index) { return ' '; }
public int length() { return 1; }
public CharSequence subSequence(int start, int end) { return this; }
public String toString() { return " "; }
}
// FILE: CharSeq.kt
class KtCharSeq : MyCharSequence() // false-positive 'get' not implemented
@@ -0,0 +1,21 @@
package
public final class KtCharSeq : MyCharSequence {
public constructor KtCharSeq()
public open override /*1*/ /*fake_override*/ val length: kotlin.Int
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun get(/*0*/ index: kotlin.Int): kotlin.Char
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun subSequence(/*0*/ startIndex: kotlin.Int, /*1*/ endIndex: kotlin.Int): kotlin.CharSequence
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
public open class MyCharSequence : kotlin.CharSequence {
public constructor MyCharSequence()
public open override /*1*/ val length: kotlin.Int
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ fun get(/*0*/ index: kotlin.Int): kotlin.Char
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ fun subSequence(/*0*/ startIndex: kotlin.Int, /*1*/ endIndex: kotlin.Int): kotlin.CharSequence
public open override /*1*/ fun toString(): kotlin.String
}