blob: 1d5d67a1e52f69abb2194b5081a999a258bfc943 [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.
/// @description Checks that it is a static type warning if the expression
/// cannot be assigned to bool.
/// @description Checks that it is compile error if the expression
/// cannot be assigned to bool.
/// @author rodionov
main() {
var i;
if ("true") {
// ^
// [analyzer] unspecified
// [cfe] unspecified
i = 1;
}
}