on master help sign in
Handle case where there are no tests to be done
commit1158a979d899fd9fbdd6c627fa575f1d47b48d0e authorEvan Czaplicki <info@elm-lang.org> dateThu 1 Oct 2015, 17:47 (11 years ago) parenta2427f5
1 file changed+3
src/Optimize/Patterns/DecisionTree.hs+3
src/Optimize/Patterns/DecisionTree.hs+3
@@ -159,6 +159,9 @@ toDecisionTree variantDict rawBranches =
159159 (_, []) ->
160160 Decision path decisionEdges Nothing
161161
162+ ([], _ : _) ->
163+ toDecisionTree variantDict fallback
164+
162165 (_, _) ->
163166 Decision path decisionEdges (Just (toDecisionTree variantDict fallback))
164167