This commit is contained in:
Hackerpilot 2016-01-18 14:18:09 -08:00
parent 75c3278a32
commit 65a55493da
4 changed files with 12 additions and 1 deletions

View file

@ -885,7 +885,7 @@ private:
write(" ");
indents.push(tok!"enum");
writeToken();
if (!currentIs(tok!":"))
if (!currentIs(tok!":") && !currentIs(tok!"{"))
write(" ");
}
break;

View file

@ -0,0 +1,4 @@
enum
{
x = 3
}

4
tests/issue0212.d Normal file
View file

@ -0,0 +1,4 @@
enum
{
x = 3
}

View file

@ -0,0 +1,3 @@
enum {
x = 3
}