Copy param attributes to field attributes in the case of constructor field promotion
commit489be3ccc66894e5d21352a8b473036d419decb3
authorVassil Mladenov <vmladenov@fb.com>
Wed, 27 Dec 2017 23:35:04 +0000 (27 15:35 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Wed, 27 Dec 2017 23:48:48 +0000 (27 15:48 -0800)
tree2e3b4dd850f3de9e065e1ab7d07da539973bc09b
parent9935fb76c1e8effde8293a7eadd73bb1cc46a7f5
Copy param attributes to field attributes in the case of constructor field promotion

Summary: Copy constructor param user attributes in parser when emitting the implicit fields of a class

Reviewed By: dabek

Differential Revision: D6639893

fbshipit-source-id: a494f0e96ebd48891be3f51bda25e33267031b6d
hphp/hack/src/parser/parser_hack.ml
hphp/hack/test/typecheck/const_attribute/usage/constructor_parameter_promotion.php [new file with mode: 0644]
hphp/hack/test/typecheck/const_attribute/usage/constructor_parameter_promotion.php.exp [new file with mode: 0644]
hphp/hack/test/typecheck/const_attribute/usage/constructor_parameter_promotion.php.no_format [new file with mode: 0644]