Skip to content

Fix for Type-enclosing resolves * in tuple types as integer multiplication - #2105

Open
PizieDust wants to merge 3 commits into
ocaml:mainfrom
PizieDust:fix_tc
Open

Fix for Type-enclosing resolves * in tuple types as integer multiplication #2105
PizieDust wants to merge 3 commits into
ocaml:mainfrom
PizieDust:fix_tc

Conversation

@PizieDust

Copy link
Copy Markdown
Contributor

This PR closes #2093.
Here we remove values from the fallback list when Merlin is looking up a type and added a check so merlin doesn't guess that a text may be a math expression when analyzing a type.

cc @voodoos

"class": "return",
"value": "Integer multiplication.
Left-associative operator, see {!Ocaml_operators} for more information.",
"value": "Not in environment '*'",

@voodoos voodoos Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still not ideal. I will think about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Type-enclosing resolves * in tuple types as integer multiplication

2 participants