Fix #60
This commit is contained in:
parent
7f0b3baecb
commit
e737d56d0d
|
|
@ -314,7 +314,7 @@ private:
|
|||
else if (current.type == tok!"else")
|
||||
{
|
||||
writeToken();
|
||||
if (current.type == tok!"if")
|
||||
if (current.type == tok!"if" || (current.type == tok!"static" && peekIs(tok!"if")))
|
||||
write(" ");
|
||||
else if (current.type != tok!"{")
|
||||
{
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
static if (a) {}
|
||||
else static if (b) {}
|
||||
else {}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
static if (a)
|
||||
{
|
||||
}
|
||||
else static if (b)
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
Loading…
Reference in New Issue