[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
+4 -4
View File
@@ -1,18 +1,18 @@
compiler/testData/cli/jvm/firError.kt:1:13: error: 'val' on function parameter is prohibited.
fun println(val x: Int) {}
^
^^^
compiler/testData/cli/jvm/firError.kt:5:13: error: variable 'x' must be initialized.
println(x)
^
compiler/testData/cli/jvm/firError.kt:10:16: error: subclass 'public' exposes its 'private-in-file' supertype 'Private'.
class Public : Private() {
^
^^^^^^^
compiler/testData/cli/jvm/firError.kt:10:16: error: this type is final, so it cannot be extended.
class Public : Private() {
^
^^^^^^^
compiler/testData/cli/jvm/firError.kt:11:5: error: property must be initialized or be abstract.
val x: Private
^
^^^^^^^^^^^^^^
compiler/testData/cli/jvm/firError.kt:11:9: error: property 'public' exposes its 'private-in-file' type 'Private'.
val x: Private
^