FIR checker: differentiate unsafe infix/operator calls from UNSAFE_CALL
This commit is contained in:
committed by
Dmitriy Novozhilov
parent
1729eff31b
commit
9b1f01ab04
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user