3e409e7b8d
+ update message for list pattern type argument mismatch Change-Id: I49cad4c5b01222592ea535f05be7dcc46639a993 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/280172 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
11 lines
297 B
Dart
11 lines
297 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.
|
|
|
|
test(o) {
|
|
switch (o) {
|
|
case <int>{}:
|
|
case <int, int, String>{}:
|
|
}
|
|
}
|