[Analysis API] add regression tests for KTIJ-24163

^KTIJ-24114 obsolete
This commit is contained in:
Ilya Kirillov
2023-06-23 14:57:00 +02:00
committed by teamcity
parent 3f6420c5b9
commit 048ecdf981
6 changed files with 28 additions and 0 deletions
@@ -0,0 +1,3 @@
KtErrorCallInfo:
candidateCalls = []
diagnostic = ERROR<ASSIGNMENT_IN_EXPRESSION_CONTEXT: Assignments are not expressions, and only expressions are allowed in this context>
@@ -0,0 +1,4 @@
fun main(args: Array<String>) {
var x = listOf(1,2,"three")
var y = <expr>x /= x </expr>
}
@@ -0,0 +1,3 @@
KtErrorCallInfo:
candidateCalls = []
diagnostic = ERROR<UNRESOLVED_REFERENCE: Unresolved reference: divAssign>