Skip to content

Commit

Permalink
Put back proper match
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinRansom committed Feb 8, 2020
1 parent a2f99e5 commit 54ff908
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/fsharp/fsc.fs
Original file line number Diff line number Diff line change
Expand Up @@ -845,10 +845,9 @@ module MainModuleBuilder =
else
((false, ""), v)
||> Seq.fold(fun (finished, v) c ->
if finished || Char.IsDigit(c) then
false, v + c.ToString()
else
true, v)
match finished with
| false when Char.IsDigit(c) -> false, v + c.ToString()
| _ -> true, v)
|> snd
match System.UInt16.TryParse v with
| (true, i) -> i
Expand Down

0 comments on commit 54ff908

Please sign in to comment.