Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed82008 committed Feb 1, 2020
1 parent 4ad7d45 commit 51471fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flatten.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const flattened_dists = [ Bernoulli,
Truncated,
]
for T in flattened_dists
@eval toflatten(::T) = true
@eval toflatten(::$T) = true
end
toflatten(::Distribution) = false
for T in flattened_dists
Expand Down

0 comments on commit 51471fd

Please sign in to comment.