ff18485f72
Bug: https://github.com/dart-lang/sdk/issues/50035 Change-Id: I31c7003fd40a6e074f2561561d2fba49955cc098 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/271565 Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
31 lines
554 B
Dart
31 lines
554 B
Dart
void f(x) {
|
|
switch (x) {
|
|
case [...== null]:
|
|
case [...!= null]:
|
|
case [...< 0]:
|
|
case [...> 0]:
|
|
case [...<= 0]:
|
|
case [...>= 0]:
|
|
case [...0]:
|
|
case [...0.0]:
|
|
case [...0x0]:
|
|
case [...null]:
|
|
case [...false]:
|
|
case [...true]:
|
|
case [...'foo']:
|
|
case [...x]:
|
|
case [...const List()]:
|
|
case [...var x]:
|
|
case [...final x]:
|
|
case [...List x]:
|
|
case [..._]:
|
|
case [...(_)]:
|
|
case [...[_]]:
|
|
case [...[]]:
|
|
case [...<int>[]]:
|
|
case [...{}]:
|
|
case [...List()]:
|
|
break;
|
|
}
|
|
}
|