[FIR2IR] Properly insert implicit casts to extension receiver in case of intersection smartcast type
^KT-62863 Fixed
This commit is contained in:
committed by
Space Team
parent
50106c740c
commit
420fbad73d
+12
@@ -1438,6 +1438,12 @@ public class ClassicNativeIrTextTestGenerated extends AbstractClassicNativeIrTex
|
||||
runTest("compiler/testData/ir/irText/expressions/genericPropertyRef.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericReceiverOnExtensionWithSmartcast.kt")
|
||||
public void testGenericReceiverOnExtensionWithSmartcast() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/genericReceiverOnExtensionWithSmartcast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("identity.kt")
|
||||
public void testIdentity() throws Exception {
|
||||
@@ -1486,6 +1492,12 @@ public class ClassicNativeIrTextTestGenerated extends AbstractClassicNativeIrTex
|
||||
runTest("compiler/testData/ir/irText/expressions/interfaceThisRef.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectedSmartcastForExtensionReceiverWithSameConstructor.kt")
|
||||
public void testIntersectedSmartcastForExtensionReceiverWithSameConstructor() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/intersectedSmartcastForExtensionReceiverWithSameConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt16905.kt")
|
||||
public void testKt16905() throws Exception {
|
||||
|
||||
+12
@@ -1438,6 +1438,12 @@ public class FirLightTreeNativeIrTextTestGenerated extends AbstractFirLightTreeN
|
||||
runTest("compiler/testData/ir/irText/expressions/genericPropertyRef.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericReceiverOnExtensionWithSmartcast.kt")
|
||||
public void testGenericReceiverOnExtensionWithSmartcast() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/genericReceiverOnExtensionWithSmartcast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("identity.kt")
|
||||
public void testIdentity() throws Exception {
|
||||
@@ -1486,6 +1492,12 @@ public class FirLightTreeNativeIrTextTestGenerated extends AbstractFirLightTreeN
|
||||
runTest("compiler/testData/ir/irText/expressions/interfaceThisRef.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectedSmartcastForExtensionReceiverWithSameConstructor.kt")
|
||||
public void testIntersectedSmartcastForExtensionReceiverWithSameConstructor() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/intersectedSmartcastForExtensionReceiverWithSameConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt16905.kt")
|
||||
public void testKt16905() throws Exception {
|
||||
|
||||
+12
@@ -1438,6 +1438,12 @@ public class FirPsiNativeIrTextTestGenerated extends AbstractFirPsiNativeIrTextT
|
||||
runTest("compiler/testData/ir/irText/expressions/genericPropertyRef.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericReceiverOnExtensionWithSmartcast.kt")
|
||||
public void testGenericReceiverOnExtensionWithSmartcast() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/genericReceiverOnExtensionWithSmartcast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("identity.kt")
|
||||
public void testIdentity() throws Exception {
|
||||
@@ -1486,6 +1492,12 @@ public class FirPsiNativeIrTextTestGenerated extends AbstractFirPsiNativeIrTextT
|
||||
runTest("compiler/testData/ir/irText/expressions/interfaceThisRef.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectedSmartcastForExtensionReceiverWithSameConstructor.kt")
|
||||
public void testIntersectedSmartcastForExtensionReceiverWithSameConstructor() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/intersectedSmartcastForExtensionReceiverWithSameConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt16905.kt")
|
||||
public void testKt16905() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user