Skip to content

Commit f8d6775

Browse files
committed
any
1 parent 0cc3e45 commit f8d6775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ad.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function check_adtype(context::ADTypeCheckContext, vi::DynamicPPL.AbstractVarInf
145145
# both of those give you sensible results for `get_param_eltype`.
146146
param_eltype = DynamicPPL.get_param_eltype(vi, context)
147147
valids = valid_eltypes(context)
148-
if !(param_eltype .<: valids)
148+
if !(any(param_eltype .<: valids))
149149
throw(IncompatibleADTypeError(valtype, adtype(context)))
150150
end
151151
end

0 commit comments

Comments
 (0)