Future<void> main() async ...
fails on dartpad if flutter is imported
#2966
Labels
P3
A lower priority bug or feature request
What happened?
DartPad is failing to compile a program if the return type of
main
is anything other thanvoid
, ordynamic
, AND flutter is imported. It does not cause an error if flutter is not imported.Steps to reproduce problem
Run example code below.
Additional info
Browser
Browser: Google Chrome
Version: Version 124.0.6367.201 (Official Build) (arm64)
Are you using any extensions/plugins that affect website behavior
(particularly those that affect iframes, such as ad blockers)?
Are there any warnings or errors in your browser's JavaScript console?
If so, paste them below:
Machine
Operating system: macOS
Version: 14.5 (23F79)
Your code
What code was in the editor, if any, when the failure occurred? You
can paste it in below:
DartPad's output
Did DartPad print anything to the console pane? If so, paste it below:
If you were running Flutter code, you can also paste an image of the
Flutter output directly into this bug report.
The text was updated successfully, but these errors were encountered: