1
0
Fork 0
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:
Brian Fiete 2020-08-29 07:26:22 -07:00
parent ffee0a2aa3
commit 4369e07a55
12 changed files with 36 additions and 34 deletions

View file

@ -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);
//