[FIR] Replace type variable types with error types in lambda completion
#KT-54568 Fixed #KT-59882
This commit is contained in:
committed by
Space Team
parent
48433bf9fd
commit
80200fc3c5
@@ -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<!> ->
|
||||
|
||||
Reference in New Issue
Block a user