blob: ca81c0fde94b10a18e33d956a981542cd43d020e [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 @assertion final E single
/// @description Checks that single is read-only property and cannot be changed
/// @author
import "../../../Utils/expect.dart";
import "dart:collection";
main() {
dynamic queue = new DoubleLinkedQueue();
Expect.throws(() { queue.single = false; }, (e) => e is NoSuchMethodError);