Fix 'infix call' diagnostic for in operation
#KT-8845 Fixed
This commit is contained in:
@@ -11,8 +11,8 @@ operator fun Int?.contains(<!UNUSED_PARAMETER!>x<!> : Int) : Boolean = false
|
||||
fun f(): Unit {
|
||||
var set : Set? = null
|
||||
val i : Int? = null
|
||||
i <!UNSAFE_INFIX_CALL!>+<!> 1
|
||||
i <!UNSAFE_OPERATOR_CALL!>+<!> 1
|
||||
set + 1
|
||||
1 <!UNSAFE_INFIX_CALL!>in<!> set
|
||||
1 <!UNSAFE_OPERATOR_CALL!>in<!> set
|
||||
1 in 2
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user