Files
sdk/pkg/front_end/testcases/patterns/never_pattern.dart
Johnni Winther 1f48889e8f [cfe] Fix object field pattern access on Never
This access kind was wrongfully set to Dynamic instead of Never.

Change-Id: Iab949e47e6faffb55ae351eea4857acb37dacb3c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/495360
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2026-04-15 00:36:05 -07:00

10 lines
301 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(Never n) {
switch (n) {
case == 0:
case Never(:var hashCode):
}
}