[Bug] Rescript 10.1.0-alpha.2 allows an empty record (?) {}
where a tuple is expected
#5728
Closed
3 of 5 tasks
ReScript playground set to use ReScript v10.0.1 rightly raises an error for the following code snippet:
https://rescript-lang.org/try?code=C4TwDgpgBAhgxsAlgewHYChSShAZriBTcaAE0QGcwZg4ALKAXlgRVSYD4oBXVRYdBAAewCACdUMADZQA7vzoAFGCCnIYpAFxQAFHvJUa9ADRQA5NVXrSASk48+wUxZVqNNu4y54CCJlAAiAFJEUghUJFAA9CkIYCghf3lgJVdrHQBvAF8bdCA
However, v10.1.0-alpha.2 compiles with the above error, even producing a JS output. Minimal repro repo: https://github.com/jayeshbhoot/rescript-empty-record-bug
Thank you for filing! Check list:
The text was updated successfully, but these errors were encountered: