Skip to content

Commit 9a4659f

Browse files
author
Christopher Doris
committed
explode_union(Union{}) now returns the empty list
1 parent 753a3f1 commit 9a4659f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ module Utils
1414
if S isa Union
1515
Us = Any[explode_union(S.a)..., explode_union(S.b)...]
1616
Any[foldl((body, var) -> UnionAll(var, body), vars, init=U) for U in Us]
17+
elseif S == Union{}
18+
Any[]
1719
else
1820
Any[T]
1921
end

0 commit comments

Comments
 (0)