[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
+2
-2
@@ -13,10 +13,10 @@ compiler/testData/multiplatform/classScopes/constructorIncorrectSignature/jvm.kt
|
||||
actual constructor(s: Array<String>): Foo
|
||||
|
||||
actual class Foo {
|
||||
^
|
||||
^^^
|
||||
compiler/testData/multiplatform/classScopes/constructorIncorrectSignature/jvm.kt:2:5: error: 'actual constructor(s: Array<String>): Foo' has no corresponding expected declaration
|
||||
The following declaration is incompatible because parameter types are different:
|
||||
expect constructor(s: String): Foo
|
||||
|
||||
actual constructor(s: Array<String>)
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
+2
-2
@@ -10,10 +10,10 @@ The following declaration is incompatible because some entries from expected enu
|
||||
expect enum class AB : Enum<AB>
|
||||
|
||||
actual enum class AB { A, C }
|
||||
^
|
||||
^^
|
||||
compiler/testData/multiplatform/classScopes/enumsWithDifferentEntries/jvm.kt:3:19: error: 'actual enum class CD : Enum<CD>' has no corresponding expected declaration
|
||||
The following declaration is incompatible because some entries from expected enum are missing in the actual enum:
|
||||
expect enum class CD : Enum<CD>
|
||||
|
||||
actual enum class CD { C }
|
||||
^
|
||||
^^
|
||||
|
||||
@@ -7,13 +7,13 @@ Exit code: OK
|
||||
Output:
|
||||
compiler/testData/multiplatform/classScopes/fakeOverrides/common.kt:1:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
expect open class Base {
|
||||
^
|
||||
^^^^^^
|
||||
compiler/testData/multiplatform/classScopes/fakeOverrides/common.kt:5:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
expect class Derived : Base {
|
||||
^
|
||||
^^^^^^
|
||||
compiler/testData/multiplatform/classScopes/fakeOverrides/jvm.kt:1:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
actual open class Base {
|
||||
^
|
||||
^^^^^^
|
||||
compiler/testData/multiplatform/classScopes/fakeOverrides/jvm.kt:5:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
actual class Derived : Base() {
|
||||
^
|
||||
^^^^^^
|
||||
|
||||
+2
-2
@@ -13,10 +13,10 @@ compiler/testData/multiplatform/classScopes/functionAndPropertyWithSameName/jvm.
|
||||
actual fun bar(): String
|
||||
|
||||
actual class Foo {
|
||||
^
|
||||
^^^
|
||||
compiler/testData/multiplatform/classScopes/functionAndPropertyWithSameName/jvm.kt:4:16: error: 'actual fun bar(): String' has no corresponding expected declaration
|
||||
The following declaration is incompatible because callable kinds are different (function vs property):
|
||||
expect val bar: String
|
||||
|
||||
actual fun bar(): String = ""
|
||||
^
|
||||
^^^
|
||||
|
||||
+1
-1
@@ -10,4 +10,4 @@ The following declaration is incompatible because return type is different:
|
||||
expect fun function(b: ByteArray): Int
|
||||
|
||||
actual fun function(b: ByteArray): Long = b.size.toLong()
|
||||
^
|
||||
^^^^^^^^
|
||||
|
||||
Vendored
+1
-1
@@ -13,4 +13,4 @@ compiler/testData/multiplatform/classScopes/functionIncorrectSignatureFromSuperc
|
||||
fun function(b: ByteArray): Long
|
||||
|
||||
actual class Foo : Base()
|
||||
^
|
||||
^^^
|
||||
|
||||
@@ -13,4 +13,4 @@ compiler/testData/multiplatform/classScopes/missingConstructor/jvm.kt:1:14: erro
|
||||
constructor(): Foo
|
||||
|
||||
actual class Foo
|
||||
^
|
||||
^^^
|
||||
|
||||
@@ -10,4 +10,4 @@ compiler/testData/multiplatform/classScopes/missingFunction/jvm.kt:1:14: error:
|
||||
expect fun function(s: String): Unit
|
||||
|
||||
actual class Foo
|
||||
^
|
||||
^^^
|
||||
|
||||
@@ -7,7 +7,7 @@ Exit code: OK
|
||||
Output:
|
||||
compiler/testData/multiplatform/classScopes/simple/common.kt:1:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
expect class Foo(param: String) {
|
||||
^
|
||||
^^^^^^
|
||||
compiler/testData/multiplatform/classScopes/simple/jvm.kt:1:1: warning: 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
|
||||
actual class Foo actual constructor(param: String) {
|
||||
^
|
||||
^^^^^^
|
||||
|
||||
Reference in New Issue
Block a user