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...)
29
29
end
30
30
end
31
31
32
- const DEFAULT_FORMATTERS = Dict {Type{T} where T , DefaultSpec} ()
32
+ const DEFAULT_FORMATTERS = Dict {Type{<:Any} , DefaultSpec} ()
33
33
34
34
# adds a new default formatter for this type
35
35
default_spec! (:: Type{T} , c:: AbstractChar ) where {T} =
@@ -83,6 +83,7 @@ default_spec(::Type{<:AbstractFloat}) = DEFAULT_FORMATTERS[AbstractFloat]
83
83
default_spec (:: Type{<:AbstractString} ) = DEFAULT_FORMATTERS[AbstractString]
84
84
default_spec (:: Type{<:AbstractChar} ) = DEFAULT_FORMATTERS[AbstractChar]
85
85
default_spec (:: Type{<:AbstractIrrational} ) = DEFAULT_FORMATTERS[AbstractIrrational]
86
+ default_spec (:: Type{<:Rational} ) = DEFAULT_FORMATTERS[Rational]
86
87
default_spec (:: Type{<:Number} ) = DEFAULT_FORMATTERS[Number]
87
88
default_spec (:: ComplexInteger ) = DEFAULT_FORMATTERS[ComplexInteger]
88
89
default_spec (:: ComplexFloat ) = DEFAULT_FORMATTERS[ComplexFloat]
You can’t perform that action at this time.
0 commit comments