-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dart 3: ContinueSwitchStatement doesn't work on web #51802
Comments
cc @jakemac53 @itsjustkevin This is currently blocking for getting the Flutter Framework onto Dart 3.0. Edit: I have a work around: We can just refactor the code that uses continue with label statements in a switch/case to not do that anymore. |
Based on the exception, is this maybe an issue with the web compiler: sdk/pkg/dev_compiler/lib/src/kernel/compiler.dart Line 4789 in 7a09c1e
The issue (#29352) it links to is closed, though. |
@nshahan do you know who would be the expert in this area? |
One of us will take a look at this today and respond with an update here. @goderbauer It sound like you identified a workaround, are you already taking that option or waiting to find out the turnaround for a fix? |
If there is no fix by the time we’re ready to submit flutter/flutter#122546 I’m gonna go with the work around as it’s currently implemented in that PR. I don’t want to delay Flutter’s migration to Dart 3 further to leave some time to fix any additional issues that may come up. When the fix lands I’d undo the workaround, though. |
@Markzipan has a fix out for review. |
The following code fails to run with
flutter test --platform=chrome test/pure_dart_test.dart
under Dart 3.0:test/pure_dart_test.dart:
pubspec.yaml
Exception:
Everything works fine when running the test on the VM with
flutter test test/pure_dart_test.dart
.The text was updated successfully, but these errors were encountered: