FIR checker: differentiate unsafe infix/operator calls from UNSAFE_CALL

This commit is contained in:
Jinseong Jeon
2021-02-08 11:27:56 -08:00
committed by Dmitriy Novozhilov
parent 1729eff31b
commit 9b1f01ab04
7 changed files with 69 additions and 16 deletions
@@ -7,5 +7,5 @@ infix fun Int.bar(i: Int) = i
fun test() {
val p = A()
// For open value properties, smart casts should not work
if (p.foo is Int) p.foo <!UNSAFE_CALL!>bar<!> 11
if (p.foo is Int) p.foo <!UNSAFE_INFIX_CALL!>bar<!> 11
}