Revert "[NI] Report unsafe implicit invoke accordingly to OI"

This reverts commit b045adf83a.
This commit is contained in:
Pavel Kirpichenkov
2020-02-13 16:06:40 +03:00
parent bf9d4f065b
commit df046683cc
30 changed files with 62 additions and 286 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
// !WITH_NEW_INFERENCE
class Rule(val apply:() -> Unit)
fun bar() {}
@@ -13,7 +14,7 @@ fun foo() {
rule?.apply?.invoke()
// this should be an error
rule?.<!UNSAFE_IMPLICIT_INVOKE_CALL!>apply<!>()
rule?.<!OI;UNSAFE_IMPLICIT_INVOKE_CALL!>apply<!>()
// these both also ok (with smart cast / unnecessary safe call)
if (rule != null) {