Make argument for the return keyword optional

fixes #8237
This commit is contained in:
Gunnar Beutner 2015-01-16 08:41:27 +01:00
parent a1734e3051
commit 76fefaf9e2
1 changed files with 1 additions and 1 deletions

View File

@ -591,7 +591,7 @@ lterm: type
$$ = MakeLiteral();
}
| T_RETURN rterm
| T_RETURN optional_rterm
{
$$ = new ReturnExpression($2, @$);
}