[NI] Don't report uninferred type parameter error on special functions

Type parameters can't be specified explicitly for special constructions.
Reporting this error does not help fixing the cause of it and needlessly
reveals implementation details.

^KT-36342 Fixed
This commit is contained in:
Pavel Kirpichenkov
2020-02-06 12:07:13 +03:00
parent fd0c644b6f
commit 95a8060946
13 changed files with 133 additions and 4 deletions
@@ -1,7 +1,7 @@
// !WITH_NEW_INFERENCE
fun test1() {
<!NI;NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>if (<!UNRESOLVED_REFERENCE!>rr<!>) {
if (<!UNRESOLVED_REFERENCE!>rr<!>) {
if (<!UNRESOLVED_REFERENCE!>l<!>) {
<!UNRESOLVED_REFERENCE!>a<!>.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>q<!>()
}
@@ -16,7 +16,7 @@ fun test1() {
else {
<!UNRESOLVED_REFERENCE!>a<!>.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>u<!>()
}
}<!>
}
}
fun test2(l: List<<!UNRESOLVED_REFERENCE!>AA<!>>) {