JuliaDebug / JuliaDebug/Cthulhu.jl
Unused functions annotated as `Any`
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.