hhvm
hhvm copied to clipboard
Runtime should disallow 'async public function' or typechecker should allow it
Typechecker requires 'public async function', however the runtime allows it either way.
+1
Ran into this issue and it took me a while to figure it out.
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.
Agreed. Should be a pretty simple parser change.
Tracked as hhvm/hhast#548
Removed tracking, I thought it was the other way around.