You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"File \"src/ocaml/typing/typecore.ml\", line 3144, characters 31-37: Assertion failed",
If you replace let f x : a -> int = ... with let f x : int -> int = ..., merlin correctly reports int as the type. That is, this issue appears to be related to local types. You can also reproduce the issue by making a a local type introduced by an existential unpack or by locally declaring a new type with let open struct type a = A end in ....
The text was updated successfully, but these errors were encountered:
Here is a test demonstrating the crash: https://github.com/ncik-roberts/merlin/tree/demonstrate-type-expression-bug
I'll reproduce an example in this issue as well. If you have a program like this:
and then ask for the type of the
f y
application expression:you get an assertion failure:
If you replace
let f x : a -> int = ...
withlet f x : int -> int = ...
, merlin correctly reportsint
as the type. That is, this issue appears to be related to local types. You can also reproduce the issue by makinga
a local type introduced by an existential unpack or by locally declaring a new type withlet open struct type a = A end in ...
.The text was updated successfully, but these errors were encountered: