PSI2IR: Fix delegated members generation
When generating bodies for members implemented by delegation, invoke corresponding delegate member, not an interface member. Otherwise we might lose platform-specific nullability information in case of mixed Kotlin-Java hierarchies, as in implicitNotNullOnDelegatedImplementation.kt
This commit is contained in:
@@ -125,6 +125,11 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
|
||||
runTest("compiler/testData/ir/irText/classes/enumWithSecondaryCtor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitNotNullOnDelegatedImplementation.kt")
|
||||
public void testImplicitNotNullOnDelegatedImplementation() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/classes/implicitNotNullOnDelegatedImplementation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("initBlock.kt")
|
||||
public void testInitBlock() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/classes/initBlock.kt");
|
||||
|
||||
Reference in New Issue
Block a user