using ComponentArrays
ca = ComponentArray(x=2.0, y=2.0)
function f(ca::ComponentArray{T}) where T
sum(ca)
end
julia> @which f(ca)
Error showing value of type Method:
ERROR: UndefVarError: T not defined
Stacktrace:
[1] show(io::IOContext{IOBuffer}, #unused#::
SYSTEM (REPL): showing an error caused an error
ERROR: UndefVarError: T not defined
Stacktrace:
[1] show(io::IOContext{IOBuffer}, #unused#::
SYSTEM (REPL): caught exception of type UndefVarError while trying to handle a nested exception; giving up