File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ function DefaultSpec(c::AbstractChar, syms...; kwargs...)
2929 end
3030end
3131
32- const DEFAULT_FORMATTERS = Dict {Type{T} where T , DefaultSpec} ()
32+ const DEFAULT_FORMATTERS = Dict {Type{<:Any} , DefaultSpec} ()
3333
3434# adds a new default formatter for this type
3535default_spec! (:: Type{T} , c:: AbstractChar ) where {T} =
@@ -83,6 +83,7 @@ default_spec(::Type{<:AbstractFloat}) = DEFAULT_FORMATTERS[AbstractFloat]
8383default_spec (:: Type{<:AbstractString} ) = DEFAULT_FORMATTERS[AbstractString]
8484default_spec (:: Type{<:AbstractChar} ) = DEFAULT_FORMATTERS[AbstractChar]
8585default_spec (:: Type{<:AbstractIrrational} ) = DEFAULT_FORMATTERS[AbstractIrrational]
86+ default_spec (:: Type{<:Rational} ) = DEFAULT_FORMATTERS[Rational]
8687default_spec (:: Type{<:Number} ) = DEFAULT_FORMATTERS[Number]
8788default_spec (:: ComplexInteger ) = DEFAULT_FORMATTERS[ComplexInteger]
8889default_spec (:: ComplexFloat ) = DEFAULT_FORMATTERS[ComplexFloat]
You can’t perform that action at this time.
0 commit comments