blob: ba155b2d0c8ac870a2d6363287e0c7b601b6dcb6 [file] [log] [blame]
// Copyright (c) 2011, 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 void forEach(void action(E entry))
/// Call [action] with each entry in the list.
/// @description Checks that no exception is thrown if the list is empty.
/// @author kaigorodov
import "dart:collection";
import "LinkedList.lib.dart";
main() {
new LinkedList<MyLinkedListEntry>().forEach(null);
new LinkedList<MyLinkedListEntry>().forEach((var v){});
}