Revert "[NI] Add checking @NotNull parameters for candidates"

This reverts commit 910177ab17.
This commit is contained in:
Mikhail Zarechenskiy
2019-05-29 00:40:40 +03:00
parent 25371734e8
commit 86a95e1a7b
12 changed files with 11 additions and 46 deletions
@@ -5,5 +5,6 @@ interface A<T : A<T?>?> {
fun foo(): T?
}
fun testA(a: A<*>) {
a.foo() checkType { _<A<*>?>() }
// in new inference here we have A<A<A<*>>>
a.foo() checkType { <!NI;DEBUG_INFO_UNRESOLVED_WITH_TARGET, NI;UNRESOLVED_REFERENCE_WRONG_RECEIVER!>_<!><A<*>?>() }
}