You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the request of @asashour, posting this as a separate issue.
Compiler crash when using collection-if pattern.
Using Dart SDK version: 3.0.0-229.0.dev (dev) (Fri Feb 10 20:38:38 2023 -0800) on "windows_x64".
compiled with dart --enable-experiment=records,patterns bin/example.dart
voidmain() {
print(example([[1], [2], [3]], 2));
}
List<int> example(List<List<int>> lists, int n) =>
[for (var list in lists) if (list case [var v] when v == n) v];
At the request of @asashour, posting this as a separate issue.
Compiler crash when using collection-if pattern.
Using
Dart SDK version: 3.0.0-229.0.dev (dev) (Fri Feb 10 20:38:38 2023 -0800) on "windows_x64"
.compiled with
dart --enable-experiment=records,patterns bin/example.dart
Originally posted by @mmcdon20 in #51376 (comment)
The text was updated successfully, but these errors were encountered: