[JS Legacy] Fix returning Char from suspend functions (KT-44221)
Mark translated expression with a proper type, like we do with non-suspending calls, to coerce it later.
This commit is contained in:
+1
-1
@@ -157,7 +157,7 @@ private fun translateFunctionCall(
|
||||
source = resolvedCall.call.callElement
|
||||
}))
|
||||
context.currentBlock.statements += statement
|
||||
return context.createCoroutineResult(resolvedCall)
|
||||
callExpression = context.createCoroutineResult(resolvedCall)
|
||||
}
|
||||
else {
|
||||
callExpression = callInfo.constructSafeCallIfNeeded(callExpression)
|
||||
|
||||
Reference in New Issue
Block a user