5f35413cfa
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>
13 lines
359 B
Dart
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');
|
|
}
|
|
}
|