JuliaDebug / JuliaDebug/Cthulhu.jl

Unused functions annotated as `Any`

Open
#244 5 comments 0 reactions 1 assignee View on GitHub

@aviatesk is already working on this.

Since Nov 17, 2021.

Dominant language
Julia
Stars
709
Forks
46
Avg merge
1d 13h
Merged PRs (30d)
2

Description

julia> function foo()
       (1,1)
       end

julia> bar() = (foo(); nothing)

julia> @descend optimize=false bar()
bar() in Main at REPL[7]:1
Variables
  #self#::Core.Const(bar)

│ ─ %-1  = invoke bar()::Core.Const(nothing)
    @ REPL[7]:1 within `bar`
1 ─     Main.foo()::Any
└──     return Main.nothing
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, [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.
 • %1  = foo()::Any
   ↩

We should either show the type if we have it or add an annotation that the return type was dropped because it is unused.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.