Closed vtjnash closed 4 years ago
Works with a new function, so must involve cache updates somehow:
julia> str(a::Union{Char,String}...) = 0
str (generic function with 1 method)
julia> str(a::Union{Char,LegacyStrings.ASCIIString,LegacyStrings.UTF8String}...) = 1
str (generic function with 2 methods)
julia> str('a')
ERROR: MethodError: str(::Char) is ambiguous. Candidates:
str(a::Union{Char,LegacyStrings.ASCIIString,LegacyStrings.UTF8String}...) at REPL[3]:1
str(a::Union{Char,String}...) at REPL[2]:1
Original example doesn't repro anymore (maybe because of changes in LegacyStrings). Closing as stale.