458ebaf1f1
This cache didn't use the head size as intended. Closes #52345 Change-Id: I99a3e4fe1664186103d889e0a324b6992947216a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/302922 Reviewed-by: Jens Johansen <jensj@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
17 lines
516 B
Dart
17 lines
516 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 main() {
|
|
final works = ['b', 'l'];
|
|
final fails = ['c'];
|
|
|
|
for (final test in [works, fails]) {
|
|
final _ = switch (test) {
|
|
[final b, final d, ...final x] => print('$b $d $x'),
|
|
[final f, ...final args] => print('$f $args'),
|
|
_ => throw UnimplementedError(),
|
|
};
|
|
}
|
|
}
|