FIR: in case of smart cast, use original type for FirThisRcvrExpression
Before this commit, we used type after smart cast both for original FirThisReceiverExpression and for wrapping FirExpressionWithSmartCast. However, this makes FIR2IR implicit cast generator work incorrectly (it decides not to insert implicit cast because original type is the same). After this commit, expressions have different types and implicit cast generator works properly.
This commit is contained in:
Generated
+6
@@ -2176,6 +2176,12 @@ public class IrTextTestGenerated extends AbstractIrTextTest {
|
||||
runTest("compiler/testData/ir/irText/firProblems/SignatureClash.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SimpleTypeMarker.kt")
|
||||
public void testSimpleTypeMarker() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/firProblems/SimpleTypeMarker.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SyntheticSetterType.kt")
|
||||
public void testSyntheticSetterType() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user