File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 11name = " DynamicPPL"
22uuid = " 366bfd00-2699-11ea-058f-f148b4cae6d8"
3- version = " 0.17.9 "
3+ version = " 0.17.10 "
44
55[deps ]
66AbstractMCMC = " 80f14c24-f653-4e6a-9b94-39d6b0f70001"
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ function build_model_info(input_expr)
262262 # Extract the names of the arguments.
263263 allargs_syms = map (allargs_exprs) do arg
264264 MacroTools. @match arg begin
265- (:: Type {T_} ) | (name_:: Type{T_} ) => T
265+ (:: S_ {T_} ) | (name_:: Type{T_} ) => T
266266 name_:: T_ => name
267267 x_ => x
268268 end
Original file line number Diff line number Diff line change 602602 @test ! DynamicPPL. hasmissing (Matrix{Real})
603603 @test ! DynamicPPL. hasmissing (Vector{Matrix{Float32}})
604604 end
605+
606+ @testset " issue #393: anonymous argument with type parameter" begin
607+ @model f_393 (:: Val{ispredict} = Val (false )) where {ispredict} = ispredict ? 0 : 1
608+ @test f_393 ()() == 1
609+ @test f_393 (Val (true ))() == 0
610+ end
605611end
You can’t perform that action at this time.
0 commit comments