Files
kotlin-fork/plugins/assign-plugin/testData/diagnostics/plusAssignPrecedence.diag.txt
T

18 lines
1009 B
Plaintext
Vendored

/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:
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:
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"
^