This commit is contained in:
Hackerpilot 2015-03-09 23:26:46 -07:00
parent ff6a8281fe
commit b256213b8e
3 changed files with 3 additions and 1 deletions

View file

@ -278,7 +278,7 @@ private:
else if (currentIs(tok!"return"))
{
writeToken();
if (!currentIs(tok!";"))
if (!currentIs(tok!";") && !currentIs(tok!")"))
write(" ");
}
else if (currentIs(tok!"switch"))

1
tests/issue0085.d Normal file
View file

@ -0,0 +1 @@
alias T = typeof(return);

1
tests/issue0085.d.ref Normal file
View file

@ -0,0 +1 @@
alias T = typeof(return);