Files
sdk/pkg/front_end/testcases/patterns/cast_inside_map_pattern.dart
Chloe Stefantsova 523257ab8a [cfe] Add license headers to the patterns testcaes
Part of https://github.com/dart-lang/sdk/issues/49749

Change-Id: I61cd83124083f2e017101be3ea020e04583023e3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/267600
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
2022-11-04 09:20:19 +00:00

11 lines
295 B
Dart

// Copyright (c) 2022, 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(dynamic x) {
switch (x) {
case {'a': 1 as int}:
break;
}
}