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
Hello there, and many thanks for this wonderful extension. I am using ppx_import version 1.10.0.
I just had a question about using the [@with] directive. My use case is that I have a module with a record type:
moduleA=structtypefoo1 = Z.ttypefoo2 = { bla: Z.t }
end
And I want to convert both the Z.t types into int. in this situation, the following works:
moduleB=structtypebar = [%import: (A.foo1[@withZ.t:=int])]
end
while this doesn't:
moduleC=structtypebar = [%import: (A.foo2[@withZ.t:=int])]
end
raising the error:
Error: This variant or record definition does not match that of type
A.foo2
Fields do not match:
bla : Z.t;
is not the same as:
bla : int;
The type A.foo1 is not equal to the type int
Is this intended behaviour or am I doing something wrong?
The text was updated successfully, but these errors were encountered:
Hello there, and many thanks for this wonderful extension. I am using
ppx_import
version 1.10.0.I just had a question about using the
[@with]
directive. My use case is that I have a module with a record type:And I want to convert both the
Z.t
types intoint
. in this situation, the following works:while this doesn't:
raising the error:
Is this intended behaviour or am I doing something wrong?
The text was updated successfully, but these errors were encountered: