K2: do not generate line numbers for delegated members
Psi2ir does not generate them, see https://github.com/JetBrains/kotlin/blob/1.8.20/compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/ClassGenerator.kt#L319. Besides influencing debugger and coverage behavior, it also affects how conflicting JVM signature diagnostics are reported because they use offsets to determine which element to report the error on. So after this change, K1 and K2 behavior is the same in that regard as well. #KT-58215 Fixed
This commit is contained in:
committed by
Space Team
parent
b3aa2dd60f
commit
987e8c25dc
+6
@@ -157,6 +157,12 @@ public class IrJsSteppingTestGenerated extends AbstractIrJsSteppingTest {
|
||||
runTest("compiler/testData/debug/stepping/defaultParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegation.kt")
|
||||
public void testDelegation() throws Exception {
|
||||
runTest("compiler/testData/debug/stepping/delegation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enum.kt")
|
||||
public void testEnum() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user