Skip to content

Commit f62bab8

Browse files
committed
Use Tuple constructor instead of splat
1 parent aba5e9f commit f62bab8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/prob_macro.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ end
170170
# `missings` is splatted into a tuple at compile time and inserted as literal
171171
return quote
172172
$(warnings...)
173-
DynamicPPL.Model{G, $((missings...,))}($(to_namedtuple_expr(argnames, argvals)))
173+
DynamicPPL.Model{G, $(Tuple(missings))}($(to_namedtuple_expr(argnames, argvals)))
174174
end
175175
end
176176

@@ -227,7 +227,7 @@ end
227227

228228
# `args` is inserted as properly typed NamedTuple expression;
229229
# `missings` is splatted into a tuple at compile time and inserted as literal
230-
return :(DynamicPPL.Model{G, $((missings...,))}($(to_namedtuple_expr(argnames, argvals))))
230+
return :(DynamicPPL.Model{G, $(Tuple(missings))}($(to_namedtuple_expr(argnames, argvals))))
231231
end
232232

233233
_setval!(vi::TypedVarInfo, c::AbstractChains) = _setval!(vi.metadata, vi, c)

0 commit comments

Comments
 (0)