JVM: fix SMAP range extension logic
If `mapLineNumber` was called in non-monotonic order, e.g. N then N+2 then N+1, the first two calls created a range that spans [N; N+2] but the third call did not reuse it.
This commit is contained in:
+10
@@ -3305,6 +3305,16 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
|
||||
runTest("compiler/testData/codegen/boxInline/smap/oneFile.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("rangeFolding.kt")
|
||||
public void testRangeFolding() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/smap/rangeFolding.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("rangeFoldingInClass.kt")
|
||||
public void testRangeFoldingInClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/smap/rangeFoldingInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("smap.kt")
|
||||
public void testSmap() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/smap/smap.kt");
|
||||
|
||||
Reference in New Issue
Block a user