Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Spelling suggestions will repeat the same name in the presence of opened modules #7864
Original bug ID: 7864
When the same name is defined at top level and in opened modules, spelling suggestions will list that name, unqualified, multiple times. The result is slightly ridiculous:
Hint: Did you mean foo, foo or foo?
Steps to reproduce
Define the same name in several modules and open them. Then misspell that identifier such that spelling suggestions are made.
module A = struct let foo = () end;;
module A : sig val foo : unit end
module B = struct let foo = () end;;
module B : sig val foo : unit end
let foo = ();;
val foo : unit = ()