diff --git a/src/variable.jl b/src/variable.jl index 057460970..c2120b782 100644 --- a/src/variable.jl +++ b/src/variable.jl @@ -160,8 +160,8 @@ function construct_vars(v, type, call_args, val, prop, transform, isruntime) var_name = v expr = construct_var(isruntime ? var_name : Meta.quot(var_name), type, call_args, val, prop) end - rhs = transform(expr) lhs = isruntime ? gensym(var_name) : var_name + rhs = :($transform($expr)) lhs, :($lhs = $rhs) end