blob: 33e79067cc0d66c85d8eeb5258f5a52cc5ec2d75 [file] [log] [blame]
// Copyright (c) 2015, 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/ `pub run test -N prefer_is_not_empty`
bool lne = ![1].isEmpty; // LINT [12:12]
bool mne = !{2: 'a'}.isEmpty; // LINT
bool ine = !iterable.isEmpty; // LINT
bool parens = !([3].isEmpty); // LINT
bool parens2 = !(([4].isEmpty)); // LINT
bool le = [].isEmpty;
bool me = {}.isEmpty;
bool ie = iterable.isEmpty;
Iterable get iterable => [];