ea1f4d474e
The new node is generated in for-in loops with synthetic variables. Part of https://github.com/dart-lang/sdk/issues/61572 Change-Id: Icaa63097a145d07cdcfe21edc0487a47f90da8dd Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/487060 Commit-Queue: Chloe Stefantsova <cstefantsova@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
14 lines
344 B
Dart
14 lines
344 B
Dart
// Copyright (c) 2026, 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.
|
|
|
|
test(List<String> list) {
|
|
String s = "";
|
|
for (s in list) {
|
|
if (s.isNotEmpty) {
|
|
return s;
|
|
}
|
|
}
|
|
return s;
|
|
}
|