Files
sdk/pkg/front_end/testcases/closure_context_lowering/synthetic_variables.dart
T
Chloe Stefantsova ea1f4d474e [cfe] Introduce InternalSyntheticVariable internal AST node
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>
2026-03-12 01:51:31 -07:00

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;
}