This commit is contained in:
Hackerpilot 2015-03-18 16:26:27 -07:00
parent c8c595bf16
commit c291340e90
4 changed files with 24 additions and 1 deletions

View File

@ -776,7 +776,7 @@ private:
formatAt();
break;
case tok!"!":
if (peekIs(tok!"is"))
if (peekIs(tok!"is") && !(peekBackIs(tok!"(") || peekBackIs(tok!"=")))
write(" ");
goto case;
case tok!"...":

View File

@ -0,0 +1,8 @@
static assert(!is(T : int));
unittest
{
foo(!is(T : int));
}
enum a(T) = !is(T : int);

8
tests/issue0116.d Normal file
View File

@ -0,0 +1,8 @@
static assert(!is(T : int));
unittest
{
foo(!is(T : int));
}
enum a(T) = !is(T : int);

View File

@ -0,0 +1,7 @@
static assert(!is(T : int));
unittest {
foo(!is(T : int));
}
enum a(T) = !is(T : int);