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
Structure / signature type mismatch for a given identifier seems to be reported at the start of the structure (i.e at the struct keyword) and only mentions incompatible types (5006). Example:
structure S :
sig
val i : int
end =
struct
(* ^ error here *)
val i = ""
end
Expected behavior
If possible, the location of the diagnostic should be that of the declaration in the structure. Or maybe mentioning either the identifier or the positions of the mismatching declarations in the diagnostic message?
Actual behavior
incompatible types: `int` and `string` are different type constructors
expected `int`
found `string` Millet(5006)
The text was updated successfully, but these errors were encountered:
Environment
Steps to reproduce
Structure / signature type mismatch for a given identifier seems to be reported at the start of the structure (i.e at the
struct
keyword) and only mentions incompatible types (5006). Example:Expected behavior
If possible, the location of the diagnostic should be that of the declaration in the structure. Or maybe mentioning either the identifier or the positions of the mismatching declarations in the diagnostic message?
Actual behavior
The text was updated successfully, but these errors were encountered: