parent
e4297a63c3
commit
eea508f930
|
|
@ -794,12 +794,16 @@ private:
|
|||
write(" ");
|
||||
break;
|
||||
case tok!"enum":
|
||||
if (peekBackIs(tok!"identifier"))
|
||||
write(" ");
|
||||
indents.push(tok!"enum");
|
||||
writeToken();
|
||||
if (!currentIs(tok!":"))
|
||||
write(" ");
|
||||
if (peekIs(tok!")") || peekIs(tok!"==")) {
|
||||
writeToken();
|
||||
} else {
|
||||
if (peekBackIs(tok!"identifier"))
|
||||
write(" ");
|
||||
indents.push(tok!"enum");
|
||||
writeToken();
|
||||
if (!currentIs(tok!":"))
|
||||
write(" ");
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if (peekBackIs(tok!"identifier"))
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
void merge()
|
||||
{
|
||||
static if (is(T == enum))
|
||||
*thisN = x;
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
void merge()
|
||||
{
|
||||
static if (is(T == enum))
|
||||
*thisN = x;
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
void merge() {
|
||||
static if (is(T == enum))
|
||||
*thisN = x;
|
||||
}
|
||||
Loading…
Reference in New Issue