dotnet/roslyn
Parse await expression in VB when method is not async
Ouverte
#10 320 ouverte le 4 avr. 2016
Area-CompilersBugConcept-Diagnostic ClarityLanguage-VBhelp wanted
Métriques du dépôt
- Stars
- (20 414 étoiles)
- Métriques de merge PR
- (Métriques PR en attente)
Description
If you use an await expression in VB when the enclosing method is not async, you get an error that you cannot use await in a non-async method, and you also get a syntax error. In most cases we could drop the syntax error and just report the former error message.
We could also check that we bind properly if we relax the parser. See C# issue #10232.