FIR: Support overrides of generic-typed members with raw-typed ones

^KT-49070 Fixed
This commit is contained in:
Denis.Zharkov
2021-10-20 10:56:21 +03:00
committed by TeamCityServer
parent a0a57581ec
commit 4ad5f01324
7 changed files with 81 additions and 14 deletions
+25
View File
@@ -0,0 +1,25 @@
// SKIP_TXT
// FIR_IDENTICAL
// FILE: ObjectStubSerializer.java
import org.jetbrains.annotations.*;
public interface ObjectStubSerializer<Y> {
void indexStub(@NotNull Y stub);
}
// FILE: StubElement.java
public interface StubElement<T> {}
// FILE: IStubFileElementType.java
import org.jetbrains.annotations.*;
public class IStubFileElementType<X extends StubElement> extends ObjectStubSerializer<X> {
@Override
// IMO value parameter type should be T (may be I'm wrong)
public void indexStub(@NotNull final StubElement stub) {}
}
// FILE: main.kt
class MakefileStubFileElementType : IStubFileElementType<StubElement<CharSequence>>() {
// FIR: ABSTRACT_CLASS_MEMBER_NOT_IMPLEMENTED: indexStub, should be ok
// FE 1.0: Ok
}