# Getproperty for a Task is type unstable?

**URL:** <https://discourse.julialang.org/t/getproperty-for-a-task-is-type-unstable/95345>\
**Category:** Internals & Design\
**Tags:** type-stability\
**Created:** [February 28, 2023, 5:45pm UTC](https://discourse.julialang.org/t/getproperty-for-a-task-is-type-unstable/95345 "2023-02-28T17:45:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jishnub](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jishnub/32/33620_2.png) [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Post date:** [February 28, 2023, 5:45pm UTC](https://discourse.julialang.org/t/getproperty-for-a-task-is-type-unstable/95345/1 "2023-02-28T17:45:09Z")

</div>

```julia
julia> a() = sum(i for i in 1:1000);

julia> b = Task(a);

julia> @descend_code_warntype (b -> b.queue)(b)
(::var"#87#88")(b) @ Main REPL[64]:1
Body::Any
  1 ─ nothing │ 
  2 ─ nothing │ 
  3 ─ nothing │ 
1 4 ─ %4 = Base.getfield(b, :queue)::Any │╻ getproperty
  └── goto #5 ││
  5 ─ return %4 │ 
Select a call to descend into or ↩ to ascend. [q]uit. [b]ookmark.
Toggles: [o]ptimize, [w]arn, [h]ide type-stable statements, [d]ebuginfo, [r]emarks, [e]ffects, [i]nlining costs, [t]ype annotations, [s]yntax highlight for Source/LLVM/Native.
Show: [S]ource code, [A]ST, [T]yped code, [L]LVM IR, [N]ative code
Actions: [E]dit source code, [R]evise and redisplay
Advanced: dump [P]arams cache.
 • ↩

```

This shows up while looking through FFTW calls using JET. I’m not familiar with the internals here, so I was wondering if this is intentional, and something that I may ignore in the JET report.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [February 28, 2023, 5:50pm UTC](https://discourse.julialang.org/t/getproperty-for-a-task-is-type-unstable/95345/2 "2023-02-28T17:50:32Z")

</div>

seems like it

> <https://github.com/JuliaLang/julia/blob/d6a77b607b7f021c0e03e258bdc9bdafd79cf097/base/boot.jl#L158-L168>
