FIR LT: Fix diagnostic location calculation on the last line

it was calculated incorrectly on the last line that do not end
with EOL.
#KT-56649 fixed
This commit is contained in:
Ilya Chernikov
2023-02-14 17:06:58 +01:00
committed by Space Team
parent d120d83d60
commit e39eb62e6e
11 changed files with 61 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
compiler/testData/cli/jvm/firSyntaxError.kt:1:10: error: syntax error
fun a() {
^
COMPILATION_ERROR