K2: reproduce strange "smartcast aside" behavior related to KT-62544 fix

This commit is contained in:
Mikhail Glukhikh
2023-10-27 14:42:08 +02:00
committed by Space Team
parent 9c146adc3a
commit 1ef0f9e944
16 changed files with 337 additions and 0 deletions
@@ -1756,6 +1756,12 @@ public class ClassicNativeIrTextTestGenerated extends AbstractClassicNativeIrTex
runTest("compiler/testData/ir/irText/expressions/simpleUnaryOperators.kt");
}
@Test
@TestMetadata("smartCastAside.kt")
public void testSmartCastAside() throws Exception {
runTest("compiler/testData/ir/irText/expressions/smartCastAside.kt");
}
@Test
@TestMetadata("smartCasts.kt")
public void testSmartCasts() throws Exception {
@@ -1756,6 +1756,12 @@ public class FirLightTreeNativeIrTextTestGenerated extends AbstractFirLightTreeN
runTest("compiler/testData/ir/irText/expressions/simpleUnaryOperators.kt");
}
@Test
@TestMetadata("smartCastAside.kt")
public void testSmartCastAside() throws Exception {
runTest("compiler/testData/ir/irText/expressions/smartCastAside.kt");
}
@Test
@TestMetadata("smartCasts.kt")
public void testSmartCasts() throws Exception {
@@ -1756,6 +1756,12 @@ public class FirPsiNativeIrTextTestGenerated extends AbstractFirPsiNativeIrTextT
runTest("compiler/testData/ir/irText/expressions/simpleUnaryOperators.kt");
}
@Test
@TestMetadata("smartCastAside.kt")
public void testSmartCastAside() throws Exception {
runTest("compiler/testData/ir/irText/expressions/smartCastAside.kt");
}
@Test
@TestMetadata("smartCasts.kt")
public void testSmartCasts() throws Exception {