Skip to content

Let-in-annotation may introduce "unused variables" #9

@mlasson

Description

@mlasson

For instance:

let () = 
  let[@landmark] rec f () = ()
  and g () = f () in 
  g ()

will produce unused variable "f".
This is a bug in the ppx "translation".

On the other hand, the warning will disappear with:

let f = ()
let () = 
  let[@landmark] rec f () = ()
  and g () = f () in 
  g ()

this seems to be a bug in the ocaml compiler.

Metadata

Metadata

Assignees

No one assigned

    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