blob: ec4fec7466cb1d0c859648e61120e49062cf4878 [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.
// @dart = 2.9
/// @assertion final int length
/// @description Checks that length 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.length = 1; }, (e) => e is NoSuchMethodError);
}