Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

A few small questions

$
0
0

Record fields are found based on being scope in the current module. If the field is defined in a nested module, then it is not in scope in the current module. You can follow the instructions in the error message to fix the error:

let b = a->Array.map(x => {M.foo: x})

Type annotations are not required.


Viewing all articles
Browse latest Browse all 2592

Trending Articles