Can not use `await` in Dart expression evaluation
Open
P4
- Dominant language
- Dart
- Stars
- 224
- Forks
- 94
- Avg merge
- 7h 14m
- Merged PRs (30d)
- 2
Description
When using `await` in a Dart expression, you'll get the following error:
```
CompilationError: 'await' can only be used in 'async' or 'async*' methods.
```
Contributor guide
Research direction
The issue names Dart expression evaluation but provides no file, test, or implementation entry point. Start by locating the expression-evaluation path and its existing async handling, then determine the expected behavior for await expressions and add coverage showing that valid async evaluation completes without the reported compilation error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100