# Interpolating an \`Expr\` containing \`SSAValue\`s/\`Slot\`s into another \`Expr\`

**URL:** <https://discourse.julialang.org/t/interpolating-an-expr-containing-ssavalue-s-slot-s-into-another-expr/56796>\
**Category:** General Usage\
**Created:** [March 9, 2021, 11:49am UTC](https://discourse.julialang.org/t/interpolating-an-expr-containing-ssavalue-s-slot-s-into-another-expr/56796 "2021-03-09T11:49:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BridgeBot](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bridgebot/32/21491_2.png) [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Post date:** [March 9, 2021, 11:49am UTC](https://discourse.julialang.org/t/interpolating-an-expr-containing-ssavalue-s-slot-s-into-another-expr/56796/1 "2021-03-09T11:49:55Z")

</div>

Anyone know a way to interpolate an `Expr` containing `SSAValue`s/`Slot`s into another expression? Something like

```julia
julia> @eval Main ans = $(QuoteNode(code_typed(cos, (Float64, ))[1][1].code[50]))
ERROR: syntax: SSAValue objects should not occur in an AST

```

except without the error?

Note that the original poster on Slack cannot see your response here on Discourse. Consider _transcribing the appropriate answer back to Slack_, or pinging the poster here on Discourse so they can _follow this thread_.  
[(Original message :slack:)](https://julialang.slack.com/archives/C6A044SQH/p1615290228166000?thread_ts=1615290228.166000&cid=C6A044SQH) [(More Info)](https://github.com/JuliaCommunity/SlackBridge)

---

<div class="post-metadata">

**Author:** ![simeonschaub](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simeonschaub/32/216566_2.png) [@simeonschaub](https://discourse.julialang.org/u/simeonschaub)\
**Post date:** [March 9, 2021, 2:59pm UTC](https://discourse.julialang.org/t/interpolating-an-expr-containing-ssavalue-s-slot-s-into-another-expr/56796/2 "2021-03-09T14:59:04Z")

</div>

This is a Julia issue. Should be fixed by [allow quoted ssa values and slots in ast by simeonschaub · Pull Request #39965 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/pull/39965).
