mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Added a 'cast' intrinsic
This commit is contained in:
parent
660e7d8125
commit
1f20d76f94
14 changed files with 75 additions and 22 deletions
|
@ -6281,6 +6281,11 @@ void BfModule::Visit(BfDeferStatement* deferStmt)
|
|||
else
|
||||
scope = mCurMethodState->mCurScope;
|
||||
|
||||
if ((scope == mCurMethodState->mCurScope) && (scope->mCloseNode == NULL))
|
||||
{
|
||||
Warn(0, "This defer will immediately execute. Consider specifying a wider scope target such as 'defer::'", deferStmt->mDeferToken);
|
||||
}
|
||||
|
||||
if (auto block = BfNodeDynCast<BfBlock>(deferStmt->mTargetNode))
|
||||
{
|
||||
if (deferStmt->mBind != NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue