KT-59504 [FIR] Check _ on destructuring declarations

Previously the checker was ignoring them, leading to missing diagnostics

^KT-59504 Fixed
This commit is contained in:
Alejandro Serrano Mena
2023-09-21 11:27:32 +02:00
committed by Space Team
parent 59129501cb
commit b1551c67e0
12 changed files with 77 additions and 5 deletions
@@ -50,7 +50,7 @@ fun bar() {
_ checkType { _<String>() }
}
foo { (_: String, b) ->
foo { (<!COMPONENT_FUNCTION_RETURN_TYPE_MISMATCH!>_: String<!>, b) ->
<!UNRESOLVED_REFERENCE!>_<!>.hashCode()
b checkType { _<String>() }
}