[FIR] Prevent missing diagnostics on free lambdas

The change in `FirPsiDiagnosticTestGenerated.Resolve#testCast`
only highlights the existing
problem that we don't assign a
valid type to `_`.

^KT-58906 Fixed
This commit is contained in:
Nikolay Lunyak
2023-08-07 15:58:16 +03:00
committed by Space Team
parent 9a719066e3
commit 71cc634a7c
18 changed files with 73 additions and 20 deletions
@@ -24,7 +24,7 @@ fun bar() {
y2 checkType { _<(A) -> Unit>() }
val z = { <!COMPONENT_FUNCTION_MISSING, COMPONENT_FUNCTION_MISSING!>(a: Int, b: String)<!> ->
val z = { <!COMPONENT_FUNCTION_MISSING, COMPONENT_FUNCTION_MISSING, VALUE_PARAMETER_WITH_NO_TYPE_ANNOTATION!>(a: Int, b: String)<!> ->
a checkType { _<Int>() }
b checkType { _<String>() }
}