Skip to content

Commit

Permalink
Fixed the Equals(typeof<string>) problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
Juhan Ernits committed Nov 10, 2014
1 parent ad40b26 commit c26af67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coursework7input/BrokenRomanNumbers/Library1.fs
Expand Up @@ -47,7 +47,7 @@ let check_separation (str:string) =
*)
let convert(input:string)=
if input.GetType().Equals(string) then
if input.GetType().Equals(typeof<string>) then
if (input.Replace("M", "").Replace("D", "").Replace("C", "").Replace("L", "").Replace("X", "").Replace("V", "").Replace("I", "")).Length > 0 then
failwith "invalid input"
let sum = 0
Expand Down

0 comments on commit c26af67

Please sign in to comment.