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

use clause grammar is incorrect for "simple" clauses #103

Description

@ericlippert

The grammar in Ch 20 for "simple" use clauses is incorrect. It states that

use function \N\F, \N\G;

is legal, but

use function \N\F, function \N\G;

is illegal. Though this IS illegal in PHP, in Hack we wish it to be legal.

The spec should be updated to say so. The grammar can be emended by changing

use namespace-use-kindopt  namespace-use-clauses  ;

to

use namespace-use-kind-clauses  ;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions