Member access is `->` followed by lvar, not word
commit29555346a788ab5cdff1a8d9e70def42f70d2a56
authorJosh Watzman <jwatzman@fb.com>
Mon, 17 Nov 2014 22:10:50 +0000 (17 14:10 -0800)
committerhhvm-bot <hhvm-bot@fb.com>
Mon, 17 Nov 2014 22:30:34 +0000 (17 14:30 -0800)
treed1e7136c126d57a5710b8c9a498d359636d009d2
parentf637a94c0c5a80069f444e04d485a381008d91a2
Member access is `->` followed by lvar, not word

Summary: Minor parser tweak; you're not allowed `-` in variable names.
See comment in new lexer rule.

Also removes a couple unused definitions while I'm at it.

Fixes https://github.com/facebook/hhvm/issues/3712

Reviewed By: @int3

Differential Revision: D1683429

Signature: t1:1683429:1416113309:0098f9c4715bd9f6e3d5cc5d13d744a24d4c9c22
hphp/hack/src/parsing/lexer_hack.mll
hphp/hack/src/parsing/parser_hack.ml
hphp/hack/test/typecheck/member_varname.php [new file with mode: 0644]
hphp/hack/test/typecheck/member_varname.php.exp [new file with mode: 0644]