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 cc6b425 + de52f84 commit 96b225aCopy full SHA for 96b225a
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