blob: f03862f3086a2801852c78853eb6aa7bae9056ca [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`
late 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