Skip to content

Incomplete error messages #78

@xvw

Description

@xvw

cc @gasche

Consider this minimal OCaml program, that defines a functor with two arguments, but then applies it with only the second argument, resulting in a functor-application type error.

module F(K : Map.OrderedType) (V : sig type value end) = struct
  module S = Map.Make(K)
  type t = V.value S.t
end

module Val = struct type value = string end
module IValMap = F(Val)

displays in error buffer:

ocamllsp: This application of the functor F is ill-typed.
These arguments:
  Val
do not match these parameters:
  (K : Map.OrderedType) (V : ...) -> ...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions