Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

use clause grammar is incorrect for group clauses #104

Open
ericlippert opened this issue Aug 25, 2017 · 0 comments
Open

use clause grammar is incorrect for group clauses #104

ericlippert opened this issue Aug 25, 2017 · 0 comments

Comments

@ericlippert
Copy link
Contributor

The grammar in ch 20 says that the following are legal:

use \N\ { function C, function D };
use function \N\ { C, D };
use \N\ { C, D };

but this is illegal:

use function \N\ { function C, function D };

HHVM does not actually follow that rule; HHVM allows any use of a kind inside the { }, so only the second and third are legal.

We should fix the grammar so that the contents of the { } list is a use clause list, not a use kind clause list.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant