Skip to content

Commit

Permalink
Accept static struct at statement context
Browse files Browse the repository at this point in the history
Allows for compatibility with D2 where adding `static` is necessary
to get rid of context pointer.
  • Loading branch information
mihails-strasuns-sociomantic committed Jun 10, 2015
1 parent e26a181 commit e9bf6c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -2325,7 +2325,7 @@ Dsymbols *Parser::parseDeclarations()
return a;
}

if (token.value == TOKclass)
if (token.value == TOKclass || token.value == TOKstruct)
{ AggregateDeclaration *s;

s = (AggregateDeclaration *)parseAggregate();
Expand Down

0 comments on commit e9bf6c4

Please sign in to comment.