Analyser doesn't recognize global variable if I use await
in a function that is marked not async
#38236
Labels
analyzer-recovery
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
contributions-welcome
Contributions welcome to help resolve this (the resolution is expected to be clear from the issue)
P3
A lower priority bug or feature request
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Hi,
first thanks for this awesome tool set!
Was just fooled by the analyzer before I understood what happened I have this function here
On my way to convert this to a non async method I deleted the first
await
and then theasync
and suddenly got this:And was pretty confused why suddenly
backend
was no longer defined. I had to delete the secondawait
before the analyzer would recognizebackend
again.Cheers
Thomas
The text was updated successfully, but these errors were encountered: