blob: 3dead385c22c42f4925bfd1a34edfbcbf5fa6f77 [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 E previous
/// Return the predecessor of this element in its linked list.
/// Returns [null] if there is no predecessor in the linked list, or if this
/// entry is not currently in any list.
/// @description Checks that [null] is returned if there is no predecessor in the
/// linked list
/// @author
import "../../../Utils/expect.dart";
import "dart:collection";
import "LinkedListEntry.lib.dart";
main() {
MyLinkedListEntry<int> entry = new MyLinkedListEntry<int>(1);
LinkedList<MyLinkedListEntry> list = new LinkedList<MyLinkedListEntry<int>>();