Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The variable topSort was introduced as `topSort = []` without declared type. It is assigned in the body of the local function strongConnect. However, we only do local type inference, not across function boundaries. As a result, at the return of stronglyConnectedComponentsAndTopSort, the inferred type of topSort is still list[void] and the returned tuple is rejected by the type checker.
- Loading branch information