Fix: unary expression unexpected end, range violations
This commit is contained in:
parent
3df1324e9b
commit
a8f888c436
|
@ -3523,6 +3523,8 @@ invariant() foo();
|
|||
else
|
||||
{
|
||||
expect(tok!"new");
|
||||
if (!moreTokens())
|
||||
return null;
|
||||
node.type = parseType();
|
||||
if (currentIs(tok!"["))
|
||||
{
|
||||
|
@ -5651,6 +5653,8 @@ q{(int a, ...)
|
|||
UnaryExpression parseUnaryExpression()
|
||||
{
|
||||
mixin(traceEnterAndExit!(__FUNCTION__));
|
||||
if (!moreTokens())
|
||||
return null;
|
||||
auto node = new UnaryExpression;
|
||||
switch (current.type)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue