Skip to content

Commit

Permalink
fix distr_support macro for type parameters (#1106)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed82008 committed May 1, 2020
1 parent 2d7f203 commit 0c6cd50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/univariates.jl
Expand Up @@ -140,7 +140,7 @@ macro distr_support(D, lb, ub)
D_has_constantbounds = (isa(ub, Number) || ub == :Inf) &&
(isa(lb, Number) || lb == :(-Inf))

paramdecl = D_has_constantbounds ? :(d::Union{$D, Type{$D}}) : :(d::$D)
paramdecl = D_has_constantbounds ? :(d::Union{$D, Type{<:$D}}) : :(d::$D)

# overall
esc(quote
Expand Down

0 comments on commit 0c6cd50

Please sign in to comment.