# Is there a way to tell if a function was \`@inline\`’d?

**URL:** <https://discourse.julialang.org/t/is-there-a-way-to-tell-if-a-function-was-inline-d/54392>\
**Category:** General Usage\
**Created:** [February 1, 2021, 4:10pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-tell-if-a-function-was-inline-d/54392 "2021-02-01T16:10:13Z")\
**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:** [February 1, 2021, 4:10pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-tell-if-a-function-was-inline-d/54392/1 "2021-02-01T16:10:13Z")

</div>

Is there a way to tell if a function was `@inline`’d?

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/p1612195798367300?thread_ts=1612195798.367300&cid=C6A044SQH) [(More Info)](https://github.com/JuliaCommunity/SlackBridge)

---

<div class="post-metadata">

**Author:** ![jlchan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jlchan/32/10958_2.png) [@jlchan](https://discourse.julialang.org/u/jlchan)\
**Post date:** [February 1, 2021, 4:23pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-tell-if-a-function-was-inline-d/54392/2 "2021-02-01T16:23:44Z")

</div>

answer from Matt Bauman on Slack

> Best way I’m aware of is to `@code_typed` an outer function and see if the inner function disappears when you go from `optimize=false` to `true` .
