nickel-lang / organist

Control all your tooling from a single console
MIT License
404 stars 20 forks source link

Close the “File” record contract #212

Closed thufschmitt closed 3 months ago

thufschmitt commented 3 months ago

It used to be open (probably because that was the only way to extend it before the module system), leading to some very sub-optimal error messages on something like files.foo.connent = "blah".

Make it closed, so that the above properly fails with:

contract broken by the value of `files`
       extra field `connent`