fix: Had to also check for generic type in return of a function.

add check to prevent stack overflow error
Add panic to prevent any other occurrences of stack overflow
This commit is contained in:
Kasey White
2023-03-02 21:35:17 -05:00
committed by Lucas
parent 26b4156d5a
commit 5779b77ccc
4 changed files with 18 additions and 40 deletions

View File

@@ -106,5 +106,5 @@ test flatten_with_2() {
None
}
},
) == [("b", ""), ("a", "2")]
) == [("a", "2"), ("b", "")]
}