Closed
Description
Regardless of the final syntax selected for await
, given the prevalence of prefix keyword in other languages, and the possibility of thinking it is a method, the parser should support these syntaxes and error with an appropriate targeted diagnostic. Furthermore, should the field or method syntax were to be chosen, we should have reasonable behavior with explanations when accidentally using await
when trying to access a field or call a similar method both inside and outside of async
blocks.