[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,19 +1,19 @@
|
||||
/incorrectUsage.kt:18:5: error: val cannot be reassigned
|
||||
task.input = 42
|
||||
^
|
||||
^^^^^^^^^^
|
||||
/incorrectUsage.kt:18:16: error: no applicable 'assign' function found for '=' overload
|
||||
task.input = 42
|
||||
^
|
||||
/incorrectUsage.kt:18:18: error: the integer literal does not conform to the expected type StringProperty
|
||||
task.input = 42
|
||||
^
|
||||
^^
|
||||
/incorrectUsage.kt:24:9: error: val cannot be reassigned
|
||||
input = 42
|
||||
^
|
||||
^^^^^
|
||||
/incorrectUsage.kt:24:15: error: no applicable 'assign' function found for '=' overload
|
||||
input = 42
|
||||
^
|
||||
/incorrectUsage.kt:24:17: error: the integer literal does not conform to the expected type StringProperty
|
||||
input = 42
|
||||
^
|
||||
^^
|
||||
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
/localVariables.kt:18:5: error: val cannot be reassigned
|
||||
property = "Fail"
|
||||
^
|
||||
^^^^^^^^
|
||||
/localVariables.kt:18:16: error: type mismatch: inferred type is String but StringProperty was expected
|
||||
property = "Fail"
|
||||
^
|
||||
^^^^^^
|
||||
/localVariables.kt:23:5: error: val cannot be reassigned
|
||||
property = StringProperty("Fail")
|
||||
^
|
||||
^^^^^^^^
|
||||
/localVariables.kt:28:16: error: type mismatch: inferred type is String but StringProperty was expected
|
||||
property = "Fail"
|
||||
^
|
||||
^^^^^^
|
||||
/localVariables.kt:38:9: error: val cannot be reassigned
|
||||
property = "Fail"
|
||||
^
|
||||
^^^^^^^^
|
||||
/localVariables.kt:38:20: error: type mismatch: inferred type is String but StringProperty was expected
|
||||
property = "Fail"
|
||||
^
|
||||
^^^^^^
|
||||
/localVariables.kt:42:9: error: val cannot be reassigned
|
||||
property = StringProperty("Fail")
|
||||
^
|
||||
^^^^^^^^
|
||||
|
||||
|
||||
@@ -1,28 +1,28 @@
|
||||
/methodDeclaration.kt:5:28: error: function 'assign' used for '=' overload should return 'Unit'
|
||||
fun assign(v: String): String {
|
||||
^
|
||||
^^^^^^
|
||||
/methodDeclaration.kt:9:36: error: function 'assign' used for '=' overload should return 'Unit'
|
||||
fun assign(v: StringProperty): String {
|
||||
^
|
||||
^^^^^^
|
||||
/methodDeclaration.kt:16:36: error: function 'assign' used for '=' overload should return 'Unit'
|
||||
fun StringProperty.assign(v: Int): String {
|
||||
^
|
||||
^^^^^^
|
||||
/methodDeclaration.kt:25:5: error: val cannot be reassigned
|
||||
task.input = "42"
|
||||
^
|
||||
^^^^^^^^^^
|
||||
/methodDeclaration.kt:25:16: error: function 'assign' used for '=' overload should return 'Unit'
|
||||
task.input = "42"
|
||||
^
|
||||
/methodDeclaration.kt:26:5: error: val cannot be reassigned
|
||||
task.input = 42
|
||||
^
|
||||
^^^^^^^^^^
|
||||
/methodDeclaration.kt:26:16: error: function 'assign' used for '=' overload should return 'Unit'
|
||||
task.input = 42
|
||||
^
|
||||
/methodDeclaration.kt:35:5: error: val cannot be reassigned
|
||||
task.input = 42
|
||||
^
|
||||
^^^^^^^^^^
|
||||
/methodDeclaration.kt:35:18: error: the integer literal does not conform to the expected type IntProperty
|
||||
task.input = 42
|
||||
^
|
||||
^^
|
||||
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
/noAnnotation.kt:17:5: error: val cannot be reassigned
|
||||
task.input = "OK"
|
||||
^
|
||||
^^^^^^^^^^
|
||||
/noAnnotation.kt:17:18: error: type mismatch: inferred type is String but StringProperty was expected
|
||||
task.input = "OK"
|
||||
^
|
||||
^^^^
|
||||
/noAnnotation.kt:18:5: error: val cannot be reassigned
|
||||
task.input = StringProperty("OK")
|
||||
^
|
||||
^^^^^^^^^^
|
||||
/noAnnotation.kt:20:9: error: val cannot be reassigned
|
||||
input = "OK"
|
||||
^
|
||||
^^^^^
|
||||
/noAnnotation.kt:20:17: error: type mismatch: inferred type is String but StringProperty was expected
|
||||
input = "OK"
|
||||
^
|
||||
^^^^
|
||||
/noAnnotation.kt:23:9: error: val cannot be reassigned
|
||||
input = StringProperty("OK")
|
||||
^
|
||||
^^^^^
|
||||
/noAnnotation.kt:25:5: error: val cannot be reassigned
|
||||
task.input = 42
|
||||
^
|
||||
^^^^^^^^^^
|
||||
/noAnnotation.kt:25:18: error: the integer literal does not conform to the expected type StringProperty
|
||||
task.input = 42
|
||||
^
|
||||
^^
|
||||
/noAnnotation.kt:27:9: error: val cannot be reassigned
|
||||
input = 42
|
||||
^
|
||||
^^^^^
|
||||
/noAnnotation.kt:27:17: error: the integer literal does not conform to the expected type StringProperty
|
||||
input = 42
|
||||
^
|
||||
^^
|
||||
|
||||
|
||||
@@ -1,77 +1,77 @@
|
||||
/otherOperators.kt:21:16: error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
|
||||
/otherOperators.kt:21:16: error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
|
||||
public operator fun String?.plus(other: Any?): String defined in kotlin
|
||||
task.input += StringProperty("Fail")
|
||||
^
|
||||
/otherOperators.kt:22:21: error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
|
||||
^^
|
||||
/otherOperators.kt:22:21: error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
|
||||
public operator fun String?.plus(other: Any?): String defined in kotlin
|
||||
nullTask?.input += StringProperty("Fail")
|
||||
^
|
||||
^^
|
||||
/otherOperators.kt:25:16: error: unresolved reference: <=
|
||||
task.input <= StringProperty("Fail")
|
||||
^
|
||||
^^
|
||||
/otherOperators.kt:26:21: error: unresolved reference: <=
|
||||
nullTask?.input <= StringProperty("Fail")
|
||||
^
|
||||
^^
|
||||
/otherOperators.kt:29:16: error: unresolved reference: >=
|
||||
task.input >= StringProperty("Fail")
|
||||
^
|
||||
^^
|
||||
/otherOperators.kt:30:21: error: unresolved reference: >=
|
||||
nullTask?.input >= StringProperty("Fail")
|
||||
^
|
||||
^^
|
||||
/otherOperators.kt:33:15: error: unresolved reference: task.input[0]
|
||||
task.input[0] = StringProperty("Fail")
|
||||
^
|
||||
/otherOperators.kt:33:15: error: no set method providing array access
|
||||
task.input[0] = StringProperty("Fail")
|
||||
^
|
||||
^^^
|
||||
/otherOperators.kt:34:20: error: unresolved reference: nullTask?.input[0]
|
||||
nullTask?.input[0] = StringProperty("Fail")
|
||||
^
|
||||
/otherOperators.kt:34:20: error: no set method providing array access
|
||||
nullTask?.input[0] = StringProperty("Fail")
|
||||
^
|
||||
^^^
|
||||
/otherOperators.kt:37:15: error: unresolved reference: task.input[0, 0]
|
||||
task.input[0, 0] = StringProperty("Fail")
|
||||
^
|
||||
/otherOperators.kt:37:15: error: no set method providing array access
|
||||
task.input[0, 0] = StringProperty("Fail")
|
||||
^
|
||||
^^^^^^
|
||||
/otherOperators.kt:38:20: error: unresolved reference: nullTask?.input[0, 0]
|
||||
nullTask?.input[0, 0] = StringProperty("Fail")
|
||||
^
|
||||
/otherOperators.kt:38:20: error: no set method providing array access
|
||||
nullTask?.input[0, 0] = StringProperty("Fail")
|
||||
^
|
||||
^^^^^^
|
||||
/otherOperators.kt:41:15: error: unresolved reference: task.input[0, 0, 0]
|
||||
task.input[0, 0, 0] = StringProperty("Fail")
|
||||
^
|
||||
/otherOperators.kt:41:15: error: no set method providing array access
|
||||
task.input[0, 0, 0] = StringProperty("Fail")
|
||||
^
|
||||
^^^^^^^^^
|
||||
/otherOperators.kt:42:20: error: unresolved reference: nullTask?.input[0, 0, 0]
|
||||
nullTask?.input[0, 0, 0] = StringProperty("Fail")
|
||||
^
|
||||
/otherOperators.kt:42:20: error: no set method providing array access
|
||||
nullTask?.input[0, 0, 0] = StringProperty("Fail")
|
||||
^
|
||||
^^^^^^^^^
|
||||
/otherOperators.kt:45:5: error: 'operator' modifier is required on 'get' in 'StringProperty'
|
||||
task.input[0] += StringProperty("Fail")
|
||||
^
|
||||
^^^^^^^^^^^^^
|
||||
/otherOperators.kt:45:15: error: no set method providing array access
|
||||
task.input[0] += StringProperty("Fail")
|
||||
^
|
||||
^^^
|
||||
/otherOperators.kt:45:16: error: too many arguments for public final fun get(): String defined in StringProperty
|
||||
task.input[0] += StringProperty("Fail")
|
||||
^
|
||||
/otherOperators.kt:46:5: error: 'operator' modifier is required on 'get' in 'StringProperty'
|
||||
nullTask?.input[0] += StringProperty("Fail")
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^
|
||||
/otherOperators.kt:46:5: error: only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type StringProperty?
|
||||
nullTask?.input[0] += StringProperty("Fail")
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^
|
||||
/otherOperators.kt:46:20: error: no set method providing array access
|
||||
nullTask?.input[0] += StringProperty("Fail")
|
||||
^
|
||||
^^^
|
||||
/otherOperators.kt:46:21: error: too many arguments for public final fun get(): String defined in StringProperty
|
||||
nullTask?.input[0] += StringProperty("Fail")
|
||||
^
|
||||
@@ -80,10 +80,11 @@ public operator fun String?.plus(other: Any?): String defined in kotlin
|
||||
^
|
||||
/otherOperators.kt:50:9: error: no set method providing array access
|
||||
task[0] = StringProperty("Fail")
|
||||
^
|
||||
^^^
|
||||
/otherOperators.kt:53:10: error: variable expected
|
||||
task.get(0) = StringProperty("Fail")
|
||||
^
|
||||
^^^^^^
|
||||
/otherOperators.kt:54:15: error: variable expected
|
||||
nullTask?.get(0) = StringProperty("Fail")
|
||||
^
|
||||
^^^^^^
|
||||
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
/plusAssignPrecedence.kt:96:19: error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
|
||||
/plusAssignPrecedence.kt:96:19: error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
|
||||
public operator fun String?.plus(other: Any?): String defined in kotlin
|
||||
task.valInput += "K"
|
||||
^
|
||||
/plusAssignPrecedence.kt:97:19: error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
|
||||
^^
|
||||
/plusAssignPrecedence.kt:97:19: error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
|
||||
public operator fun String?.plus(other: Any?): String defined in kotlin
|
||||
task.varInput += "K"
|
||||
^
|
||||
^^
|
||||
/plusAssignPrecedence.kt:99:5: error: val cannot be reassigned
|
||||
task.valInputWithPlus += "K"
|
||||
^
|
||||
/plusAssignPrecedence.kt:101:40: error: assignment operators ambiguity:
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
/plusAssignPrecedence.kt:101:40: error: assignment operators ambiguity:
|
||||
public final operator fun plus(v: String): StringPropertyWithPlusAndPlusAssign defined in StringPropertyWithPlusAndPlusAssign
|
||||
public final operator fun plusAssign(v: String): Unit defined in StringPropertyWithPlusAndPlusAssign
|
||||
task.varInputWithPlusAndPlusAssign += "K"
|
||||
^
|
||||
^^
|
||||
|
||||
|
||||
Reference in New Issue
Block a user