Skip to content

Commit 77b6828

Browse files
committed
Make NamedDist constructor outer
1 parent 84819f1 commit 77b6828

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/distribution_wrappers.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ struct NamedDist{
1616
} <: Distribution{variate, support}
1717
dist::Td
1818
name::VarName{name}
19-
20-
NamedDist(dist::Distribution{variate, support}, vn::VarName{name}) where {variate, support, name} =
21-
new{variate, support, typeof(dist), name}(dist, vn)
2219
end
2320

21+
NamedDist(dist::Distribution{variate, support}, vn::VarName{name}) where {variate, support, name} =
22+
NamedDist{variate, support, typeof(dist), name}(dist, vn)
2423
NamedDist(dist::Distribution, name::Symbol) = NamedDist(dist, VarName(name))
2524

2625

0 commit comments

Comments
 (0)