mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Result for "IF<T>(T, T)" can be "hasUnknownParameters" if both arguments have types 'uninferred type parameter' (incomplete resolve case), no constraints are added to the system.
24 lines
762 B
Kotlin
Vendored
24 lines
762 B
Kotlin
Vendored
fun test1() {
|
|
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<!>!!
|
|
}
|
|
} |