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:
committed by
teamcityserver
parent
dbdc6176f0
commit
1966915e92
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user