Skip to content

Commit 2d887c9

Browse files
committed
Convert the result of prefix_expr in @prefix into a Sybmol
before wrapping in `Val`
1 parent 8cb0796 commit 2d887c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/contexts.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ The result of `prefix_expr` must will be converted to a `Symbol` and used as the
319319
for static prefixes. For more control over the prefixing, use the method directly.
320320
"""
321321
macro prefix(model, prefix_expr)
322-
return :($prefix($(esc(model)), $Val{$(esc(prefix_expr))}()))
322+
return :($prefix($(esc(model)), $Val{$Symbol($(esc(prefix_expr)))}()))
323323
end
324324

325325
struct ConditionContext{Values,Ctx<:AbstractContext} <: AbstractContext

0 commit comments

Comments
 (0)