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