JVM_IR: Generate more line numbers for intrinsic comparisons.

Otherwise, if complex expressions such as when expressions are
used in combination with the intrinsics we get incorrect stepping
behavior.

^KT-64341 Fixed
This commit is contained in:
Mads Ager
2023-12-13 12:43:05 +01:00
committed by Space Cloud
parent a441a82357
commit e41a1247e2
23 changed files with 723 additions and 54 deletions
@@ -595,6 +595,48 @@ public class IrJsSteppingTestGenerated extends AbstractIrJsSteppingTest {
runTest("compiler/testData/debug/stepping/whenExpr.kt");
}
@Test
@TestMetadata("whenInConjunction.kt")
public void testWhenInConjunction() throws Exception {
runTest("compiler/testData/debug/stepping/whenInConjunction.kt");
}
@Test
@TestMetadata("whenInDisjunction.kt")
public void testWhenInDisjunction() throws Exception {
runTest("compiler/testData/debug/stepping/whenInDisjunction.kt");
}
@Test
@TestMetadata("whenInGeneralObjectComparison.kt")
public void testWhenInGeneralObjectComparison() throws Exception {
runTest("compiler/testData/debug/stepping/whenInGeneralObjectComparison.kt");
}
@Test
@TestMetadata("whenInNegation.kt")
public void testWhenInNegation() throws Exception {
runTest("compiler/testData/debug/stepping/whenInNegation.kt");
}
@Test
@TestMetadata("whenInNullComparison.kt")
public void testWhenInNullComparison() throws Exception {
runTest("compiler/testData/debug/stepping/whenInNullComparison.kt");
}
@Test
@TestMetadata("whenInPrimitiveToObjectComparison.kt")
public void testWhenInPrimitiveToObjectComparison() throws Exception {
runTest("compiler/testData/debug/stepping/whenInPrimitiveToObjectComparison.kt");
}
@Test
@TestMetadata("whenInZeroComparison.kt")
public void testWhenInZeroComparison() throws Exception {
runTest("compiler/testData/debug/stepping/whenInZeroComparison.kt");
}
@Test
@TestMetadata("whenIsChecks.kt")
public void testWhenIsChecks() throws Exception {