This commit is contained in:
Hackerpilot 2015-04-23 16:53:31 -07:00
parent 9339573a05
commit 3111871465
4 changed files with 12 additions and 1 deletions

View File

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

View File

@ -0,0 +1,4 @@
unittest
{
auto result = name !in aa;
}

4
tests/issue0136.d Normal file
View File

@ -0,0 +1,4 @@
unittest
{
auto result = name !in aa;
}

View File

@ -0,0 +1,3 @@
unittest {
auto result = name !in aa;
}