[NI] Update testdata in diagnostic tests

This commit is contained in:
Dmitriy Novozhilov
2019-04-26 15:07:22 +03:00
committed by Mikhail Zarechenskiy
parent ad1b8a6fb1
commit e46f552a8d
4 changed files with 11 additions and 10 deletions
@@ -1,9 +1,10 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
// !WITH_NEW_INFERENCE
operator fun String.invoke(i: Int) {}
fun foo(s: String?) {
<!UNSAFE_CALL!>s<!>(1)
<!UNSAFE_CALL!>(s <!USELESS_ELVIS_RIGHT_IS_NULL!>?: null<!>)<!>(1)
<!NI;UNSAFE_IMPLICIT_INVOKE_CALL, OI;UNSAFE_CALL!>(s <!USELESS_ELVIS_RIGHT_IS_NULL!>?: null<!>)<!>(1)
}