FIR: report UNSAFE_CALL on dot when possible

This commit is contained in:
Mikhail Glukhikh
2021-01-29 10:25:59 +03:00
parent 0ee4f1f393
commit 7d4eaefd36
249 changed files with 1208 additions and 1649 deletions
@@ -30,8 +30,8 @@ class Case5(val y: Any?): ClassWithCostructorParam(y as Interface1), Interface1
// TESTCASE NUMBER: 6
fun case_6(a: Int?) = object : ClassWithCostructorParam(a!!) {
fun run() = a.<!UNSAFE_CALL!>toShort<!>()
fun run() = a<!UNSAFE_CALL!>.<!>toShort()
init {
println(a.<!UNSAFE_CALL!>toShort<!>())
println(a<!UNSAFE_CALL!>.<!>toShort())
}
}