blob: fb55c5736c8d705eda6bf52fd969ab74a9857a85 [file] [log] [blame]
// Copyright (c) 2017, 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 E removeLast()
/// This operation is not supported by an unmodifiable list.
/// @description Checks that [removeLast] method is not supported.
/// @author
import "dart:collection";
import "../../../Utils/expect.dart";
main() {
UnmodifiableListView l = new UnmodifiableListView([1, 2, 3, 4, 5]);
Expect.throws(() { l.removeLast(); }, (e) => e is UnsupportedError);