- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 5.7k
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorstrings"Strings!""Strings!"
Description
i <= ncodeunits(s)i <= endpos ?
Lines 75 to 76 in 1a1d6b6
| if c == '0' && i <= ncodeunits(s) | |
| c, i = iterate(s,i)::Tuple{Char, Int} | 
When I do parse(Int, "0") where "0" is an AbstractString and ncodeunits > lastindex, i get this:
TypeError: in parseint_preamble, in typeassert, expected Tuple{Char,Int64}, got Nothing
Monkeypatching parseint_preamble for my string type with i <= endpos seems to fix the problem.
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorstrings"Strings!""Strings!"