mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
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.
26 lines
838 B
Kotlin
Vendored
26 lines
838 B
Kotlin
Vendored
// !WITH_NEW_INFERENCE
|
|
|
|
fun test1() {
|
|
<!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<!>()
|
|
}
|
|
else {
|
|
<!UNRESOLVED_REFERENCE!>a<!>.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>w<!>()
|
|
}
|
|
}
|
|
else {
|
|
if (<!UNRESOLVED_REFERENCE!>n<!>) {
|
|
<!UNRESOLVED_REFERENCE!>a<!>.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>t<!>()
|
|
}
|
|
else {
|
|
<!UNRESOLVED_REFERENCE!>a<!>.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>u<!>()
|
|
}
|
|
}<!>
|
|
}
|
|
|
|
fun test2(l: List<<!UNRESOLVED_REFERENCE!>AA<!>>) {
|
|
<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>l<!>.<!UNRESOLVED_REFERENCE!>map<!> {
|
|
<!UNRESOLVED_REFERENCE!>it<!>!!
|
|
}
|
|
} |