blob: 57bc0075d64fd9c730eca18e2ae6768513d29a7a [file] [log] [blame]
// Copyright (c) 2018, 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 w/ `dart test -N avoid_bool_literals_in_conditional_expressions`
bool a, b, c;
var d = a ? true : b; // LINT
var e = a ? false : b; // LINT
var f = a ? b : true; // LINT
var g = a ? b : false; // LINT
var h = a ? b : c; // OK