This commit is contained in:
Hackerpilot 2015-03-04 17:31:36 -08:00
parent a37f4a967e
commit 146f892f37
3 changed files with 7 additions and 1 deletions

View File

@ -320,7 +320,7 @@ private:
if (next.type == tok!";" || next.type == tok!"("
|| next.type == tok!")" || next.type == tok!","
|| next.type == tok!"{" || next.type == tok!"."
|| next.type == tok!":")
|| next.type == tok!":" || next.type == tok!"*")
{
writeToken();
}

2
tests/issue0025.d Normal file
View File

@ -0,0 +1,2 @@
complex_t opMul(real y) {
return this*complex_t(y);}

4
tests/issue0025.d.ref Normal file
View File

@ -0,0 +1,4 @@
complex_t opMul(real y)
{
return this * complex_t(y);
}