Files
sdk/pkg/front_end/testcases/patterns/issue50932.dart
T
Chloe Stefantsova 87760ac53c [cfe] Support dotted names in object patterns
Closes https://github.com/dart-lang/sdk/issues/50932

Part of https://github.com/dart-lang/sdk/issues/49749

Change-Id: Ib7cbc9475a40c2d5bf4640ea1e96d1c9b2db78fc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/279708
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2023-01-25 15:57:53 +00:00

18 lines
385 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.
import './issue50932.dart' as self;
abstract class A {
int get foo;
}
test(dynamic x) {
if (x case self.A(foo: 0)) {
return 0;
} else {
return 1;
}
}