# Cant push! JuliaInterpreter.compiled\_methods

**URL:** https://discourse.julialang.org/t/cant-push-juliainterpreter-compiled-methods/24901
**Category:** Performance
**Created:** [June 3, 2019, 11:06pm UTC](https://discourse.julialang.org/t/cant-push-juliainterpreter-compiled-methods/24901 "2019-06-03T23:06:23Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [June 4, 2019, 9:08am UTC](https://discourse.julialang.org/t/cant-push-juliainterpreter-compiled-methods/24901/2 "2019-06-04T09:08:37Z")

</div>

As the name indicates, you should push methods, not functions. This works:

```julia
julia> using JuliaInterpreter

julia> function println_(x)
           println(x)
       end;

julia> m = which(println_, (Any,))
println_(x) in Main at REPL[2]:2

julia> push!(JuliaInterpreter.compiled_methods, m)

```

See also [PSA: how to quote code with backticks](https://discourse.julialang.org/t/psa-how-to-quote-code-with-backticks/7530)

---

_[View the full topic](https://discourse.julialang.org/t/cant-push-juliainterpreter-compiled-methods/24901)._
