Skip to content
This repository was archived by the owner on May 24, 2023. It is now read-only.

Commit afda90b

Browse files
authored
Add explicit type to for-in loop (#16)
Workaround for dart-lang/sdk#31884 in the dev.17.0 version of the SDK.
1 parent f91eb93 commit afda90b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/src/strongly_connected_components.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ List<List<V>> stronglyConnectedComponents<K, V>(
4040
index++;
4141
lastVisited.addLast(node);
4242
onStack.add(nodeKey);
43-
for (final next in children(node) ?? const []) {
43+
for (final V next in children(node) ?? const []) {
4444
var nextKey = key(next);
4545
if (!indexes.containsKey(nextKey)) {
4646
strongConnect(next);

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: graphs
2-
version: 0.1.0
2+
version: 0.1.1-dev
33
description: Graph algorithms operation an graphs in any representation.
44
author: Dart Team <[email protected]>
55
homepage: https://github.com/dart-lang/graphs

0 commit comments

Comments
 (0)