mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Warn on deprecated brace initializer syntax
This commit is contained in:
parent
ffee0a2aa3
commit
4369e07a55
12 changed files with 36 additions and 34 deletions
|
@ -7512,6 +7512,8 @@ BfObjectCreateExpression* BfReducer::CreateObjectCreateExpression(BfAstNode* all
|
|||
|
||||
if (auto block = BfNodeDynCast<BfBlock>(mVisitorPos.GetNext()))
|
||||
{
|
||||
mPassInstance->Warn(0, "Expected '('", block->mOpenBrace);
|
||||
|
||||
mVisitorPos.MoveNext();
|
||||
MEMBER_SET(objectCreateExpr, mOpenToken, block->mOpenBrace);
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue