PSI2IR: Infer smart cast on dispatch receiver of FAKE_OVERRIDE calls
NB here we have use derived class type with type arguments replaced with star-projections. This emulates JVM erasure (to some degree), but, unfortunately, that's best we can offer here at the moment.
This commit is contained in:
@@ -1740,6 +1740,11 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
|
||||
runTest("compiler/testData/ir/irText/types/platformTypeReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("smartCastOnFakeOverrideReceiver.kt")
|
||||
public void testSmartCastOnFakeOverrideReceiver() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/types/smartCastOnFakeOverrideReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("smartCastOnFieldReceiverOfGenericType.kt")
|
||||
public void testSmartCastOnFieldReceiverOfGenericType() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/types/smartCastOnFieldReceiverOfGenericType.kt");
|
||||
|
||||
Reference in New Issue
Block a user