[FIR] Replace type variable types with error types in lambda completion

#KT-54568 Fixed
#KT-59882
This commit is contained in:
Kirill Rakhman
2023-08-07 16:30:01 +02:00
committed by Space Team
parent 48433bf9fd
commit 80200fc3c5
16 changed files with 46 additions and 50 deletions
@@ -1,24 +0,0 @@
// IGNORE_LEAKED_INTERNAL_TYPES: KT-54568
fun test1() {
try {
{ toDouble ->
}
} catch (e: Exception) {
}
}
fun test2() {
try {
} catch (e: Exception) {
{ toDouble ->
}
}
}
fun box(): String {
test1()
test2()
return "OK"
}
@@ -1,4 +1,4 @@
// IGNORE_LEAKED_INTERNAL_TYPES: KT-54568
// FIR_IDENTICAL
fun test1() {
try {
{ <!CANNOT_INFER_PARAMETER_TYPE!>toDouble<!> ->