blob: 627612f1919a97680882399e88f820a27d40b488 [file] [log] [blame]
/*
* Copyright (c) 2016, 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 final bool isNotEmpty
* Returns true if there is at least one element in this collection.
* @description Checks that isNotEmpty is read-only property and cannot be
* changed.
* @author iarkh@unipro.ru
*/
import "../../../Utils/expect.dart";
import "dart:collection";
main() {
dynamic queue = new DoubleLinkedQueue();
Expect.throws(() { queue.isNotEmpty = 1; }, (e) => e is NoSuchMethodError);
}