fix #244 - Wrong indentation for bool enums

This commit is contained in:
Basile Burg 2018-09-30 00:31:19 +02:00 committed by The Dlang Bot
parent 5e6dd58502
commit dca9e15483
4 changed files with 12 additions and 0 deletions

View file

@ -1759,6 +1759,8 @@ const pure @safe @nogc:
case tok!"stringLiteral":
case tok!"wstringLiteral":
case tok!"dstringLiteral":
case tok!"true":
case tok!"false":
return true;
default:
return false;

View file

@ -0,0 +1,5 @@
enum Status : bool
{
abort = true,
ignore = false
}

1
tests/issue0244.d Normal file
View file

@ -0,0 +1 @@
enum Status : bool { abort = true, ignore = false }

View file

@ -0,0 +1,4 @@
enum Status : bool {
abort = true,
ignore = false
}