K1: add more tests for BI assignment checker, fix corner cases
Related to KT-54004
This commit is contained in:
committed by
Space Team
parent
87af855087
commit
50cd560d09
+6
-1
@@ -9,8 +9,13 @@ fun main(arg: Any) {
|
||||
val x = 57
|
||||
val value = myBuilder {
|
||||
doSmthng("one ")
|
||||
a = <!ASSIGNMENT_TYPE_MISMATCH!>57<!>
|
||||
run { a; this }.a = <!ASSIGNMENT_TYPE_MISMATCH!>10<!>
|
||||
a += 1
|
||||
this.a = <!ASSIGNMENT_TYPE_MISMATCH!>57<!>
|
||||
this.(a) = 57
|
||||
a = <!ASSIGNMENT_TYPE_MISMATCH!>x<!>
|
||||
(a) = <!ASSIGNMENT_TYPE_MISMATCH!>x<!>
|
||||
a.<!FUNCTION_CALL_EXPECTED!>hashCode<!> = 99
|
||||
if (arg is String) {
|
||||
a = arg
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user