Hello, maybe I am missing something and it is the intended behavior, but why should this not work? It throws The record field parm1 can’t be found..
module type ModuleType = {
type record
}
module Test: ModuleType = {
type record = {parm1: string, parm2: string}
}
let record: Test.record = {parm1: "dsfg", parm2: "dsfgdgf"}
It works when the ModuleType type is removed from the definition of the module Test. This is of course very simplified version of the issue and can be simply solved by removing the type. It is just strange behavior from my point of view. And opening the Test module does not help either. It looks like you just cannot access the type inside it, when it is typed.
Will be very thankful for any response or explanation.