mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed 'may skip variable initialization' error with '?' discard
This commit is contained in:
parent
428a2eb026
commit
c523a73860
1 changed files with 3 additions and 0 deletions
|
@ -3406,6 +3406,9 @@ void BfExprEvaluator::Visit(BfBlock* blockExpr)
|
|||
|
||||
bool BfExprEvaluator::CheckVariableDeclaration(BfAstNode* checkNode, bool requireSimpleIfExpr, bool exprMustBeTrue, bool silentFail)
|
||||
{
|
||||
if (BfNodeIsA<BfUninitializedExpression>(checkNode))
|
||||
return true;
|
||||
|
||||
BfAstNode* checkChild = checkNode;
|
||||
bool childWasAndRHS = false;
|
||||
bool foundIf = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue