From 0c6cd50b435f0648eeb236d57162c66e704754d0 Mon Sep 17 00:00:00 2001 From: Mohamed Tarek Date: Fri, 1 May 2020 23:07:51 +1000 Subject: [PATCH] fix distr_support macro for type parameters (#1106) --- src/univariates.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/univariates.jl b/src/univariates.jl index 6c8827420..cc7bb6928 100644 --- a/src/univariates.jl +++ b/src/univariates.jl @@ -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