Create DONT_CARE type only for dependent lambdas (i.e. to be resolved through the type inference later)

^KT-47493 Fixed
This commit is contained in:
Victor Petukhov
2021-08-06 10:13:35 +03:00
committed by teamcityserver
parent dbdc6176f0
commit 1966915e92
9 changed files with 58 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
// DONT_TARGET_EXACT_BACKEND: WASM
fun doCall(block: Any ):Int {
(block as () -> Unit)()
return 1
}
fun test1() =
doCall {
try {}
finally {
{}
}
}
fun box(): String {
test1()
return "OK"
}