[K1, K2, CLI] Mark whole position range of compiler diagnostics in CLI
#KT-64989
This commit is contained in:
committed by
Space Team
parent
5b11308d1b
commit
7eab4b672d
+1
-1
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/metadata/getOrDefault.kt:2:38: error: unresolved reference 'getOrDefault'.
|
||||
fun foo(map: Map<String, Int>) = map.getOrDefault("", 0)
|
||||
^
|
||||
^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
compiler/testData/cli/metadata/inheritorOfExpectSealedClass/common-1.kt:1:21: error: base: expect and corresponding actual are declared in the same module
|
||||
expect sealed class Base
|
||||
^
|
||||
^^^^
|
||||
compiler/testData/cli/metadata/inheritorOfExpectSealedClass/common-2.kt:1:21: error: 'actual class Base : Any' has no corresponding expected declaration
|
||||
actual sealed class Base
|
||||
^
|
||||
^^^^
|
||||
compiler/testData/cli/metadata/inheritorOfExpectSealedClass/common-2.kt:1:21: error: base: expect and corresponding actual are declared in the same module
|
||||
actual sealed class Base
|
||||
^
|
||||
^^^^
|
||||
compiler/testData/cli/metadata/inheritorOfExpectSealedClass/common-3.kt:1:17: error: unresolved reference '<init>'.
|
||||
class Derived : Base()
|
||||
^
|
||||
^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
compiler/testData/cli/kotlinPackage.kt:1:1: error: only the Kotlin standard library is allowed to use the 'kotlin' package
|
||||
package kotlin.mylibrary
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
Reference in New Issue
Block a user