Files
sdk/pkg/front_end/testcases/patterns/pattern_inForInitializer_element.dart
Johnni Winther 561777d820 [cfe] Move lowering for PatterForElement/MapEntry to constant evaluator
Change-Id: Ia3c0d3427bd7ade10337b3bcd7c2915282b7e119
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/288405
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2023-03-14 14:05:16 +00:00

10 lines
348 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.
void f(x) => [for (var (a, b) = x; ;) a];
void g(x) => {for (var (a, b) = x; ;) b};
void h(x) => {for (var (a, b) = x; ;) a: b};