Something like that?
function foo(::Type{U}, bar2) where {U<:Real}
# do some stuff here and get T
T = typeof(bar2)
bar1 = zero(U)
foo{T,U}(bar1, bar2)
end
Something like that?
function foo(::Type{U}, bar2) where {U<:Real}
# do some stuff here and get T
T = typeof(bar2)
bar1 = zero(U)
foo{T,U}(bar1, bar2)
end