Ban yield outside function
commit0df7f7ef09b606d330e826d3fb4cf1814046d0fa
authorVassil Mladenov <vmladenov@fb.com>
Wed, 28 Feb 2018 21:40:38 +0000 (28 13:40 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Wed, 28 Feb 2018 21:52:02 +0000 (28 13:52 -0800)
tree60893e69191cf5cdfba5a6ddaffec3bdf4b57bd9
parentf723c619f04042f8093b750aaaf2ec0bfb68ebb3
Ban yield outside function

Summary: It is an error to have a yield expression outside of a function.

Reviewed By: vladima

Differential Revision: D7103315

fbshipit-source-id: 92803794569836bfb62eb3d2839292b5f9719249
hphp/hack/src/parser/full_fidelity_parser_errors.ml
hphp/hack/src/parser/full_fidelity_syntax_error.ml
hphp/hack/src/parser/full_fidelity_syntax_error.mli
hphp/test/hhcodegen_failing_tests_zend