-
Notifications
You must be signed in to change notification settings - Fork 464
Closed
Description
Expected Behavior
Compilation success.
Actual Behavior
Compilation error.
Reproduction
- define a site whose name is a reserved Ocaml keyword, eg.,
dune-project:(package (name my-package) (sites (lib include))dune:(generate_sites_module (module sites) (sites my-package)) ... dune buildgenerates and tries to build the followingSites.ml:module Sites = struct let include = Dune_site.Private_.Helpers.site ~package:"my-package" ~section:Dune_section.Lib ~suffix:"include" ~encoded:(Sys.opaque_identity "%%DUNE_PLACEHOLDER:...%%") end
- Compilation obviously fails with a syntax error.
Specifications
- Version of
dune(output ofdune --version): 2.8.2 - Version of
ocaml(output ofocamlc --version): 4.11.1 - Operating system (distribution and version): Ubuntu 20.04.2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels