[K1, K2, CLI] Mark whole position range of compiler diagnostics in CLI

#KT-64989
This commit is contained in:
Evgeniy.Zhelenskiy
2024-01-15 21:36:56 +01:00
committed by Space Team
parent 5b11308d1b
commit 7eab4b672d
278 changed files with 929 additions and 907 deletions
@@ -10,16 +10,16 @@ The following declaration is incompatible because some modifiers on expected dec
expect fun Int.plus(s: CharSequence): Int
actual fun Int.plus(s: CharSequence): Int = 0
^
^^^^
compiler/testData/multiplatform/incompatibleFunctions/jvm.kt:3:19: error: 'actual fun Double.times(x: CharArray): Unit' has no corresponding expected declaration
The following declaration is incompatible because some modifiers on expected declaration are missing on the actual one (infix, inline, operator):
expect fun Double.times(x: CharArray): Unit
actual fun Double.times(x: CharArray) {}
^
^^^^^
compiler/testData/multiplatform/incompatibleFunctions/jvm.kt:5:12: error: 'actual fun f1(): Unit' has no corresponding expected declaration
The following declaration is incompatible because some modifiers on expected declaration are missing on the actual one (infix, inline, operator):
expect fun f1(): Unit
actual fun f1() {}
^
^^