We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents be1dac4 + 6ae361f commit bd262bbCopy full SHA for bd262bb
src/utils/prim-lexing.fs
@@ -52,7 +52,12 @@ type StringText(str: string) =
52
member __.String = str
53
54
override __.GetHashCode() = str.GetHashCode()
55
- override __.Equals(obj: obj) = str.Equals(obj)
+ override __.Equals(obj: obj) =
56
+ match obj with
57
+ | :? StringText as other -> other.String.Equals(str)
58
+ | :? string as other -> other.Equals(str)
59
+ | _ -> false
60
+ override __.ToString() = str
61
62
interface ISourceText with
63
0 commit comments