I had a bug in my program that I could reproduce with a minimal example. I installed a fresh 4.08.1 opam switch, and installed only ppx_import, then tried to compile the following code:
module Foo(M: sig type t end) = struct
type t = [%import: M.t]
end
open Foo(Int)
I had a bug in my program that I could reproduce with a minimal example. I installed a fresh 4.08.1 opam switch, and installed only ppx_import, then tried to compile the following code:
Dune file being:
The error I get when I try to compile is:
In my project I had the same error when trying to use
let*
also. Removing the preprocessing stanza and the%import
removes the error.