[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
+3
-3
@@ -1,7 +1,7 @@
|
||||
fun test1(i: Int) = { i ->
|
||||
fun test1(i: Int) = { <!VALUE_PARAMETER_WITH_NO_TYPE_ANNOTATION!>i<!> ->
|
||||
i
|
||||
}(i)
|
||||
|
||||
fun test2() = { i -> i }<!NO_VALUE_FOR_PARAMETER!>()<!>
|
||||
fun test2() = { <!VALUE_PARAMETER_WITH_NO_TYPE_ANNOTATION!>i<!> -> i }<!NO_VALUE_FOR_PARAMETER!>()<!>
|
||||
|
||||
fun test3() = { i -> i }(1)
|
||||
fun test3() = { <!VALUE_PARAMETER_WITH_NO_TYPE_ANNOTATION!>i<!> -> i }(1)
|
||||
|
||||
Reference in New Issue
Block a user