Files
sdk/pkg/front_end/testcases/patterns/error_cases.dart
T
Johnni Winther 624ff0b356 [cfe] Update checkState to handle some error cases
Change-Id: Iadce61ac289b956f6f6012ec2bab5bf0bd1db15b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/284702
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2023-02-23 07:57:41 +00:00

9 lines
311 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.
method() {
final Square(:areaAsInt) || Square(:areaAsInt) = Square(2);
final (42) = 42;
}