[NI] Resolve lambda against input types from expected type
This is needed to report more precise diagnostics and fix IDE-tests #KT-31059 Fixed
This commit is contained in:
+1
-1
@@ -47,7 +47,7 @@ fun bar() {
|
||||
b checkType { _<String>() }
|
||||
}
|
||||
|
||||
foo <!NI;TYPE_MISMATCH!>{ <!OI;EXPECTED_PARAMETER_TYPE_MISMATCH!>(a, b): B<!> ->
|
||||
foo <!NI;TYPE_MISMATCH!>{ <!EXPECTED_PARAMETER_TYPE_MISMATCH!>(a, b): B<!> ->
|
||||
a checkType { _<Double>() }
|
||||
b checkType { _<Short>() }
|
||||
}<!>
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@ fun bar() {
|
||||
b checkType { _<String>() }
|
||||
}
|
||||
|
||||
foo <!NI;TYPE_MISMATCH!>{ <!OI;EXPECTED_PARAMETER_TYPE_MISMATCH!>(_, b): B<!> ->
|
||||
foo <!NI;TYPE_MISMATCH!>{ <!EXPECTED_PARAMETER_TYPE_MISMATCH!>(_, b): B<!> ->
|
||||
<!UNRESOLVED_REFERENCE!>_<!>.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>hashCode<!>()
|
||||
b checkType { _<Short>() }
|
||||
}<!>
|
||||
|
||||
Reference in New Issue
Block a user