Files
sdk/pkg/front_end/testcases/offsets/pattern_for_loop.dart
T
Johnni Winther 5f35413cfa [cfe] Avoid step debugging on intermediate variables in lowering
Closes #51812

Change-Id: Id6bef901ac639fbd1aace4ddf9ed770495efff23
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/292783
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2023-04-04 13:55:57 +00:00

13 lines
359 B
Dart

// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
method(List list) {
for (var [a, b] = list; a < 10; a++) {
print('$a, $b');
}
for (var [a, b] in list) {
print('$a, $b');
}
}