[NI] Update / mute diagnostics

Update diagnostics for new inference.
'Not enough information for parameter' should not be reported for
fake calls and functions with error return type, muted in tests.
This commit is contained in:
Pavel Kirpichenkov
2019-12-05 20:59:56 +03:00
parent 6fa11d1573
commit d9ef7d0c8a
3 changed files with 9 additions and 5 deletions
@@ -1,5 +1,7 @@
// !WITH_NEW_INFERENCE
fun test1() {
if (<!UNRESOLVED_REFERENCE!>rr<!>) {
<!NI;NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>if (<!UNRESOLVED_REFERENCE!>rr<!>) {
if (<!UNRESOLVED_REFERENCE!>l<!>) {
<!UNRESOLVED_REFERENCE!>a<!>.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>q<!>()
}
@@ -14,7 +16,7 @@ fun test1() {
else {
<!UNRESOLVED_REFERENCE!>a<!>.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>u<!>()
}
}
}<!>
}
fun test2(l: List<<!UNRESOLVED_REFERENCE!>AA<!>>) {