blob: 25509f4196c934cf1783e30a8043ef7be32b44e9 [file] [log] [blame]
// Copyright (c) 2011, 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.
// @dart = 2.9
/// @assertion It is a static warning if the type of e is may not be assigned to
/// the type of ek.
/// @description Checks that a compile error is produced if the type of the
/// switch expression's value cannot be assigned to any of the case expression
/// types.
/// @author vasya
main() {
switch (false) {
// ^
// [analyzer] unspecified
case 0:
// ^
// [cfe] unspecified
case 1:
// ^
// [cfe] unspecified
}
}