julia> abstract Foo
julia> type SubFoo <: Foo
x
end
julia> func(bar::Type{Foo}) = println(bar)
func (generic function with 1 method)
julia> f=SubFoo(1)
SubFoo(1)
julia> func(typeof(f))
ERROR: `func` has no method matching func(::Type{SubFoo})
What do I need to replace "Type{Foo}" with to get this working?
I tried "Type{T<:Foo}" and "Type{<:Foo}" but neither worked, I felt I was
close though?
