FIR: Fix invalid INITIALIZER_TYPE_MISMATCH for suspend lambda

This commit is contained in:
Denis.Zharkov
2021-11-03 18:52:37 +03:00
committed by teamcity
parent 994040c91c
commit 65d7da122f
9 changed files with 41 additions and 4 deletions
@@ -0,0 +1,10 @@
// FIR_IDENTICAL
// SKIP_TXT
fun <T> runBlocking(block: suspend () -> T): T = TODO()
fun foo() = runBlocking<Unit> {
val foo: suspend (String) -> Int = {
it.length
}
}