You can use Julia's type inference as: 

Base.return_types(max,(Int, Float64))

But remember if the function contains any global non-constant variables the 
function will most likely return any.

Reply via email to