[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:
committed by
Space Team
parent
9a719066e3
commit
71cc634a7c
+1
-1
@@ -1,7 +1,7 @@
|
||||
// !CHECK_TYPE
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_ANONYMOUS_PARAMETER -UNUSED_VARIABLE
|
||||
|
||||
val a = fun (x) = x
|
||||
val a = fun (<!VALUE_PARAMETER_WITH_NO_TYPE_ANNOTATION!>x<!>) = x
|
||||
|
||||
val b: (Int) -> Int = fun (x) = x + 3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user