-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
Hi,
Thank you for this package to obtain a function's source code!
I am just starting out experimenting and found, that return type annotations might not be supported:
function f(x::Int64)
return x*x + x
end
function g(x::Int64)::Int64
return x*x + x
end
println("f = $(definition(String,which(f,(Int64,))))")
println("g = $(definition(String,which(g,(Int64,))))")
gives
f = ("function f(x::Int64)\n return x*x + x\nend", 901)
g = nothing
would it be difficult to add this functionality?
kind regards,
Christian
Metadata
Metadata
Assignees
Labels
No labels