Add safety check for await inside nosuspend blocks #8001
Labels
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
Milestone
As discussed in #7972 (specifically, this comment by @SpexGuy), the zig compiler currently (version 0.7.1) doesn't put in a safety check when, inside a
nosuspend
block, weawait
an async function which has not yet completed. Instead, a garbage value is silently used as the function's return value.The compiler should put in a safety check to check whether the
await
ed function has completed.The text was updated successfully, but these errors were encountered: