Skip to content

Commit 0c6cd50

Browse files
authored
fix distr_support macro for type parameters (#1106)
1 parent 2d7f203 commit 0c6cd50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/univariates.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ macro distr_support(D, lb, ub)
140140
D_has_constantbounds = (isa(ub, Number) || ub == :Inf) &&
141141
(isa(lb, Number) || lb == :(-Inf))
142142

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

145145
# overall
146146
esc(quote

0 commit comments

Comments
 (0)