blob: 128c13b5ff616c2383a8d25ced92afa7cb49de64 [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.
/// @assertion Because boolean conversion requires its parameter to be a
/// boolean, any construct that makes use of boolean conversion will cause a
/// compile type error if the value to be converted is not a boolean.
/// @description Checks that it is a compile error to convert int to bool.
/// @compile-error
/// @author msyabro
int i = 1;
main() {
i ? '' : ' ';
}