hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

Runtime should disallow 'async public function' or typechecker should allow it

Open fredemmott opened this issue 10 years ago • 4 comments

Typechecker requires 'public async function', however the runtime allows it either way.

fredemmott avatar Feb 17 '15 18:02 fredemmott

+1

Ran into this issue and it took me a while to figure it out.

milesj avatar Feb 18 '15 18:02 milesj

I don't feel super strongly, but I like consistency, and forcing "async function" to always be together. So I'd say we should ban it in HHVM.

jwatzman avatar Feb 18 '15 19:02 jwatzman

Agreed. Should be a pretty simple parser change.

paulbiss avatar Feb 18 '15 19:02 paulbiss

Tracked as hhvm/hhast#548

Removed tracking, I thought it was the other way around.

lexidor avatar Oct 04 '23 23:10 lexidor