From 51471fd7481028b30b0795e4edc210617a37bc2d Mon Sep 17 00:00:00 2001 From: mohamed82008 Date: Thu, 23 Jan 2020 17:49:27 +1100 Subject: [PATCH] bug fix --- src/flatten.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flatten.jl b/src/flatten.jl index acd862ad..a305d1b5 100644 --- a/src/flatten.jl +++ b/src/flatten.jl @@ -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